Did you double check the spelling of the directory names?  
Is it really up one directory relative to where you're launching ant?

I know these are silly things - but we all rush sometimes :)

-----Original Message-----
From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 10:13 AM
To: [EMAIL PROTECTED]
Subject: RE: copy problem



I tried your alternative using nested elements with exactly the same 
results.  Unfortunately - I'm writing this build file as part of an exercise

for a course I'm writing.  Whilst using exec with cp would probably work - 
it's a bit "quick and dirty" to really use in a course context

Thanks for your help though





>From: David McTavish <[EMAIL PROTECTED]>
>Reply-To: "Ant Users List" <[EMAIL PROTECTED]>
>To: 'Ant Users List' <[EMAIL PROTECTED]>
>Subject: RE: copy problem
>Date: Wed, 29 Jan 2003 10:01:00 -0500
>
>Try exec'ing to cp to copy. I've had problems in the past with ant-copy,
>that I don't use it much anymore.
>Failing that, try:
>
><copy todir="../schema/stilo" overwrite="true">
>     <fileset dir=".">
>         <include name="RandomService.wsdl"/>
>     </fileset>
></copy>
>
>maybe use the available task to ensure that the file exists in the current
>directory.
>
>d.
>
>
>-----Original Message-----
>From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, January 29, 2003 9:48 AM
>To: [EMAIL PROTECTED]
>Subject: copy problem
>
>
>The following is a target that I would ideally like to use:
>
><target name="wsdl" depends="compile">
>               <java classname="org.apache.axis.wsdl.Java2WSDL">
>                       <arg value="-P"/>
>                       <arg value="RandomPortType"/>
>                       <arg value="-n"/>
>                       <arg value="http://www.stilo.com/random"/>
>                       <arg value="-l"/>
>                       <arg
>value="http://localhost:8080/ogsa/services/RandomService"/>
>                       <arg value="com.stilo.OrganicMolecule"/>
>               </java>
>               <copy file="RandomService.wsdl" toDir="../schema/stilo"/>
>       </target>
>
>The copy task for this never runs, however.  I am making sure the file i s
>deleted in the copy to location, so this is not failing due to timestamp
>issues.
>
>I then tried adding a task called "copy" which contained the above copy
>line.  It depended on the wsdl task given above.  The copy task never runs
>at all - the dependencies do, but not copy.  I then remove hte dependencies
>and simply run the copy task manually - i.e.:
>
>ant wsdl
>
>(this all runs fine - then:)
>
>ant copy
>
>This now also runs fine - but it a clumsy way of working - I really want
>the copy to be automated.
>
>What am I missing/doing wrong?
>
>
>
>
>_________________________________________________________________
>Overloaded with spam? With MSN 8, you can filter it out
>http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Chat online in real time with MSN Messenger http://messenger.msn.co.uk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to