[Anthill] ant issues: can't read properties file, exec task
doesn't work
Brian Dellisanti
bdd at urbancode.com
Wed Jun 29 16:30:23 CDT 2005
In your barebones project, did you try hardcoding the absolute path of
your test.bat? Based on what I have to look at, I agree with Eric that
it's a working directory problem. According to the ant manual, removing
the basedir attribute from the project tag will cause ant to compute
relative paths from the location of the build.xml file. Perhaps that
will help.
On Wed, 2005-06-29 at 12:40 -0700, Mirza Abbas Raza wrote:
> Btw, Eric, I created a very barebone project
> containing only a build.xml file and a test.bat file
> sitting the root directory. I try to execute this
> test.bat and I get the same exception. :(
>
> --- Eric Minick <etm at urbancode.com> wrote:
>
> > Error 2 on windows is File Not Found. Looks like you
> > have a couple of
> > files that Anthill isn't finding. Perhaps these are
> > both working directory
> > woes. Does this command work from the commandline if
> > you run the build
> > file from a different directory?
> >
> > -- Eric
> >
> > > The exception printed for the second issue is:
> > >
> > > BUILD FAILED
> > >
> >
> file:D:/projects/anthill/<namehidden>/src/build.xml:311:
> > > Execute failed: java.io.IOException:
> > CreateProcess:
> > > ..\bin\stopManagedService.bat error=2
> > >
> > > --- Mirza Abbas Raza <abbasrazam at yahoo.com> wrote:
> > >
> > >> All,
> > >>
> > >> Looks like I am doing all wrong things today.
> > >>
> > >> My environment:
> > >> Anthill: anthill os 1.8.0.264
> > >> Ant: 1.5.3
> > >> Servlet container: Tomcat 5.0.28
> > >> OS: Win 2k
> > >>
> > >> Issues:
> > >> - anthill doesn't read build.properties.
> > Following
> > >> is
> > >> a snippet from my build.xml.
> > >> <target name="anthill-build">
> > >> <property file="build.properties"/>
> > >> <echo>${weblogic.domains}</echo>
> > >> The property being echoed is present in the
> > >> build.properties file. Anthill doesn't echo the
> > >> value
> > >> of the property. It just prints out the text
> > literal
> > >> in echo tags. When I run the same target manually
> > >> from
> > >> with anthill, the property value is printed out.
> > :(
> > >> At
> > >> the same time, in the same target, I have a copy
> > >> task
> > >> call which uses filtersfile and it works. It
> > >> replaces
> > >> the necessary placeholders. Seems weird.
> > >>
> > >> - ant complains running <exec> task. Again a
> > snippet
> > >> from my file.
> > >> <exec executable="startManagedService.bat"
> > >> os="Windows
> > >> 2000"/>
> > >> Again the batch file runs fine if I run manually.
> > :(
> > >>
> > >> I would really appreciate any input.
> > >>
> > >> Thanks.
> > >>
> > >> _______________________________________________
> > >> Anthill mailing list
> > >> Anthill at lists.urbancode.com
> > >>
> > http://lists.urbancode.com/mailman/listinfo/anthill
> > >>
> > >
> > > _______________________________________________
> > > Anthill mailing list
> > > Anthill at lists.urbancode.com
> > >
> > http://lists.urbancode.com/mailman/listinfo/anthill
> > >
> >
> > _______________________________________________
> > Anthill mailing list
> > Anthill at lists.urbancode.com
> > http://lists.urbancode.com/mailman/listinfo/anthill
> >
>
> _______________________________________________
> Anthill mailing list
> Anthill at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill
More information about the Anthill
mailing list