hi,

Im able to view the generated ANT file. Also that im able to execute the ant
file using eclipse or from command line. but executing it from my java
program is the only problem.

contents of the xml ant file

<?xml version="1.0"?>
<project name="OrderBO" basedir="E:\SOAPApp" default="deltemp">
<target name="create">
<mkdir dir="temp_src" />
</target>
<target name="copytotemp" depends="create">
<copy todir="temp_src" verbose="false" overwrite="true">
<fileset file="OrderBO.java" />
</copy>
</target>
<target name="compile" depends="copytotemp">
<javac srcdir="temp_src" destdir="." />
</target>
<target name="deltemp" depends="compile">
<delete dir="temp_src"/>
</target>
</project>

regards,
shreevinayakh

On 4/20/06, Stephen McConnell <[EMAIL PROTECTED]> wrote:
>
>
>
> > -----Original Message-----
> > From: shree vinayakh [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, 20 April 2006 2:43 PM
> > To: user@ant.apache.org
> > Subject: error while using project helper
> >
> > hi,
> >
> > im using a java standalone app to write another java source
> > file and ant build file.... when i try to execute the ant
> > build file from the same standalone java app i get error
> > "Content is not allowed in prolog."
>
> <snip>
>
> > Caused by: org.xml.sax.SAXParseException: Content is not
> > allowed in prolog.
>
> This is an issue to do with parsing the XML file you created (i.e. not an
> Ant issue).  I recommend you review the generated build file and once you
> have identified and resolved the issue at the XML level then try things
> with
> Ant.
>
> Cheers, Steve.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to