Running JBoss JMS examples with ANT fails
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kevin_Knox
Posted On:   Wednesday, November 7, 2001 06:32 AM

The readme tells me to set a system variable "JBOSS_DIST". I set it to d:JBoss, which is where I put my JBoss implementation.


I then run the command "ant build" in the proper directory, and the build fails because the property "${jboss.dist}" is not set.


This seems bizarre to me, because the property is never set in the build file, along with 3 other properties. Why did they figure it would be set? I can only assume that it is supposed to pick up the property from the system variable.


Is this possible? Thanks,


Kevin

Re: Running JBoss JMS examples with ANT fails

Posted By:   Erik_Hatcher  
Posted On:   Wednesday, November 7, 2001 07:03 PM

In order to access environment variables within Ant, you need to:




and then you'll access JBOSS_DIST using this: ${env.JBOSS_DIST}. Keep in mind that Ant properties are case sensitive, whereas Windows environment variables are not. You could also hand a property to Ant via the command-line like this:


ant -Djboss.dist=%JBOSS_DIST%

Re: Running JBoss JMS examples with ANT fails

Posted By:   Kevin_Knox  
Posted On:   Wednesday, November 7, 2001 07:02 AM

I found my problem.


I was performing the build in the jms subdirectory, and should have been performing it in the examplesuild directory. The build.xml there defines these global variables, and calls additional sub-builds as specified at the command line.


Thanks,


Kevin

About | Sitemap | Contact