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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Ant script variables within WebSphere - 2

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="${}"/>"

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?

Something about .... going for a swim. With this tiny ad ...
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!