• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Ant script variables within WebSphere

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

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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!