Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Ant script variables within WebSphere - 2

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

(Sorry for the duplicate posting, my Ant syntax disappeared.)

I'm writing an Ant script to run within WebSphere WSAD 5.1. I notice that the variables described in the WebSphere help documentation regarding External Tools are not being loaded at Ant run time, although the variable ${basedir} *IS* being loaded.

For example, in the Ant script I have:

"<echo message="${workspace_loc}"/>"
"<echo message="${project_loc}"/>"
"<echo message="${container_loc}"/>"
"<echo message="${resource_loc}"/>"
"<echo message="${project_path}"/>"
"<echo message="${container_path}"/>"

"<echo message="${basedir}"/>"
"<echo message="${java.vm.name}"/>"


Here's the result:

[echo] ${workspace_loc} (these aren't correct)
[echo] ${project_loc}
[echo] ${container_loc}
[echo] ${resource_loc}
[echo] ${project_path}
[echo] ${container_path}


[echo] C:\projects\Webdisclosure (These last two ARE correct)
[echo] IBM J9SE VM

Does anyone know why the 6 variables above aren't being loaded at run time by WebSphere prior to invoking Ant? Do I have something mis-configured?

Thanks,
Robert
 
Something about .... going for a swim. With this tiny ad ...
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!