ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arti Singh <arti_sing...@yahoo.ca>
Subject HELP:(I am stumped)ANT COMPLAINS THAT AN EXISTING RESOURCE IS NON EXISTANT AND FAILS BUILD
Date Wed, 10 Aug 2005 20:11:16 GMT
Hi ,
      can someone please help?I have tried for hours to figrre this out but no help at all.The
section of code below fails to execute . while another  block of code similar in every way
 except for the file name executes perfectly.
Ant exits with:
C:\Program Files\OMS\SDK\Samples\AUTO_PLUGIN\code\plugins\taskcontext\classes
 
does not exist.Of course it exists.
 
-------------------------------------------------------------------------------------------------------------

<target name="build-taskcontext-emulator" depends="init">

<echo>building taskcontext emulator plugin</echo>

<echo>1 of 4: create 'META-INF' directory</echo>

<mkdir dir="${taskcontext.emul.classes.destdir}/META-INF"/>

<echo>2 of 4: compile plugin classes</echo>

<javac srcdir="${taskcontext.emul.srcdir}" destdir=" ${taskcontext.emul.classes.destdir}"
>

<classpath refid="classpath.compile"/>

<include name="com/mslv/oms/sample/taskcontext/*.java"/>

</javac>

<echo>3 of 4: copy plugin configuration files to 'META-INF' directory</echo>

<copy todir="${taskcontext.emul.classes.destdir}/META-INF">

<fileset dir="${taskcontext.emul.srcdir}/com/mslv/oms/sample/taskcontext/META-INF" includes="*.xml,
*.properties"/>

</copy>

<echo>4 of 4: create plugin JAR</echo>

<jar jarfile="${taskcontext.emul.destdir}/taskcontext_46_emul.jar" basedir="${taskcontext.emul.classes.destdir}"/>

</target>

above code fails 

---------------------------------------------------------------------------------------------------------------

while this block here:


<target name="build-ordercontext-emulator" depends="init">

<echo>building taskcontext emulator plugin</echo>

<echo>1 of 4: create 'META-INF' directory</echo>

<mkdir dir="${ordercontext.emul.classes.destdir}/META-INF"/>

<echo>2 of 4: compile plugin classes</echo>

<javac srcdir="${ordercontext.emul.srcdir}" destdir="${ordercontext.emul.classes.destdir}">

<classpath refid="classpath.compile"/>

<include name="com/mslv/oms/sample/ordercontext/*.java"/>

</javac>

<echo>3 of 4: copy plugin configuration files to 'META-INF' directory</echo>

<copy todir="${ordercontext.emul.classes.destdir}/META-INF">

<fileset dir="${ordercontext.emul.srcdir}/com/mslv/oms/sample/ordercontext/META-INF" includes="*.xml,
*.properties"/>

</copy>

<echo>4 of 4: create plugin JAR</echo>

<jar jarfile="${ordercontext.emul.destdir}/ordercontext_27_emul.jar" basedir="${ordercontext.emul.classes.destdir}"/>

</target>

the code above works fine.

.....................................................................................................

<!-- properties -->

<property file="build.properties"/>

<!--override following in build.properties-->

<property name="database.username" value="auto"/>

<property name="database.password" value="auto"/>

<property name="database.url" value="jdbc:oracle:thin:@:tarpon.toronto.metasolv.com:1531:sol9itg"/>

<property name="weblogic.dir" value="C:/bea/weblogic81"/>

<property name="weblogic.username" value="system"/>

<property name="weblogic.password" value="weblogic"/>

<property name="weblogic.url" value="t3://srvtodev02:7702"/>

<property name="weblogic.domain.server" value="myserver"/>

<property name="xmlimportexport.tool.dir" value="${basedir}/../../XMLModel/SDK"/>

<property name="solution.plugin.sdk.dir" value="${basedir}/../../AUTO_PLUGIN/SDK"/>

<property name="autoplugin.classpath" value="C:/Program Files/OMS/SDK/AutoPlugin/SDK/AutoPlugin_bin"/>

<property name="sdk.dir" value="C:/Program Files/OMS/SDK"/>



<!--*****

-->

<property name="plugins.namespace" value="automationtest"/>

<property name="plugins.version" value="1.0"/>

<property name="solution.plugin.namespace" value="${plugins.namespace}"/>

<property name="solution.plugin.version" value="${plugins.version}"/>



<!--*****

-->

<property name="taskcontext.emul.srcdir" value="${basedir}/code/plugins/taskcontext"/>

<property name="taskcontext.emul.classes.destdir" value="${taskcontext.emul.srcdir}/classes"/>

<property name="taskcontext.emul.destdir" value="${taskcontext.emul.srcdir}"/>

<!--*****

-->

<property name="ordercontext.emul.srcdir" value="${basedir}/code/oms_automation/ordercontext"/>

<property name="ordercontext.emul.classes.destdir" value="${ordercontext.emul.srcdir}/classes"/>

<property name="ordercontext.emul.destdir" value="${ordercontext.emul.srcdir}"/>

<!--*****

-->



<property name="notificationcontext.emul.srcdir" value="${basedir}/code/plugins/taskcontext"/>

<property name="notificationcontext.emul.classes.destdir" value="${notificationcontext.emul.srcdir}/classes"/>

<property name="notificationcontext.emul.destdir" value="${notificationcontext.emul.srcdir}"/>

<!--*****

-->

<property name="emulator.application.xml" value="${basedir}/code/oms_automation/META-INF/application.xml"/>

<property name="emulators.ear.destdir" value="${basedir}/code/oms_automation"/>

<property name="plugins.assemble.destdir" value="${basedir}/code/plugins"/>

<!--*****

-->

<property name="taskcontext.plugin.srcdir" value="${basedir}/code/plugins/taskcontext"/>

<property name="taskcontext.plugin.classes.destdir" value="${basedir}/code/plugins/taskcontext/classes"/>

<!--*****

-->

<property name="ordercontext.plugin.srcdir" value="${basedir}/code/plugins/ordercontext"/>

<property name="ordercontext.plugin.classes.destdir" value="${basedir}/code/plugins/ordercontext/classes"/>

<!--*****

-->

<property name="notificationcontext.plugin.srcdir" value="${basedir}/code/plugins/ordercontext"/>

<property name="notificationcontext.plugin.classes.destdir" value="${basedir}/code/plugins/ordercontext/classes"/>

<!--*****

-->

<property name="stage.temp.dir" value="${basedir}/staging-temp"/>

<path id="classpath.compile">

<fileset dir="${weblogic.dir}/server/lib" includes="weblogic.jar"></fileset>

<!--fileset dir="${autoplugin.classpath}" includes="Auto_plugin.jar"></fileset-->

<fileset dir="${autoplugin.classpath}" includes= "automation_plugins.jar"></fileset>

<fileset dir="${xmlimportexport.tool.dir}/lib" includes="xmlparserv2.jar"></fileset>

<fileset dir="C:/Program Files/OMS/SDK/" includes="deploytol.jar"></fileset>

<pathelement location="."/>

</path>


		
---------------------------------
Find your next car at Yahoo! Canada Autos
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message