ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nithya <Nith...@Midas-Kapiti.com>
Subject RE: continuing development for ant 1.4
Date Wed, 04 Apr 2001 17:46:29 GMT

To All,

I had a problem i have spent about 9 hours on it.I would be really haapy if
somone could tell me if i have made any mistake.Actually i have to fire the
following command through Ant:

java -classpath
c:/websphere/appserver/lib/ivbjfaceall.jar;c:/websphere/appserver/lib/jetace
.jar;c:/websphere/appserver/lib/ejs.jar;${components.home}/bin;c:/websphere/
appserver/lib/ujc.jar;c:/websphere/appserver/lib/xml4j.jar;c:/websphere/apps
erver/lib/vaprt.jar;c:/jdk1.2.2/jre/lib/rt.jar;c:/jdk1.2.2/lib/tools.jar;-DJ
ETACE_WORK_DIR=.\temp com.ibm.ejb.jetjar.JetAceMain  -f
e:/Build/eBanking200/Components/ws/bin/META-INF/ejb-jar.xml

so had written the corresponding command in Ant:

<project name="eBanking" default="main" basedir=".">
	<property name="build.path" value="e:/temp"/>
	<path id="project.path">
		<pathelement
path="c:/websphere/appserver/lib/ivbjfaceall.jar"/>
		<pathelement
location="c:/websphere/appserver/lib/jetace.jar"/>
		<pathelement location="c:/websphere/appserver/lib/ejs.jar"/>
		<pathelement location="${components.home}/bin"/>
		<pathelement location="c:/websphere/appserver/lib/ujc.jar"/>
		<pathelement location="c:/websphere/appserver/classes"/>
		<pathelement
location="c:/websphere/appserver/lib/xml4j.jar"/>
		<pathelement
location="c:/websphere/appserver/lib/vaprt.jar"/>
		<pathelement
path="c:/jdk1.2.2/jre/lib/rt.jar;c:/jdk1.2.2/lib/tools.jar"/>
		<pathelement location="${build.path}"/>
	</path>
	<target name="jetace">
	
		<java classname="com.ibm.ejb.jetjar.JetAceMain" fork="yes">
		<classpath refid="project.path"/>
		<sysproperty key="JETACE_WORK_DIR" value="${build.path}"/>

		<arg value="-f"/>
  			<arg value="
e:/Build/eBanking200/Components/ws/bin/META-INF/ejb-jar.xml"/>
		</java>
	
	</target>
	<target name="main" depends="jetace">
		<echo message="EJB code generated"/>
	</target>
</project>

On running the ant file i get a message:
 	[java] Error: the JETACE_WORK_DIR directory is not on the CLASSPATH.
 	[java] Java Result: 1
I am not able to understand why this error is coming,since i am setting the
classpath to the directory  as:<pathelement location="${build.path}"/>

Thanx in advance,
Regards,
NNithya

Mime
View raw message