ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viraj Purang" <vpur...@bea.com>
Subject Re: <style> and entities
Date Sat, 18 May 2002 01:41:08 GMT
HI,
   I want to execute the "exec" task (Need to run a batch script ) on the
basis of existence of  a particular file called cajunEnv.cmd.

I figured out that using "available" task I could set a flag, but how do i
use this flag for the conditional execution of  my batch script, Can someone
suggest examples ?

I would really appreciate a reply from you folks.

Regards,
Viraj Purang
----- Original Message -----
From: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Friday, May 17, 2002 4:42 PM
Subject: Re: <style> and entities


> Have you tried this with Ant 1.5Beta1?
>
> I know you're stuck using Ant 1.4.1, but it would be most helpful to at
> least know if the bug has already been fixed or not.  Also, since you're a
> super-savvy Ant power-user, why not have a look at the CVS diffs from
1.4.1
> to now just to see if you spot a bug fix related?  :))
>
> While I want to be as helpful as possible supporting Ant, I'm one of the
> guys that will say "upgrade" before reporting problems simply because its
> easiest to support the latest codebase!
>
> This e-mail wasn't very helpful, was it?!   Sorry 'bout that.
>
>     Erik
>
>
> ----- Original Message -----
> From: "Dominique Devienne" <DDevienne@lgc.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Friday, May 17, 2002 7:34 PM
> Subject: <style> and entities
>
>
> > Hi,
> >
> > Just started using <style> in ANT 1.4.1, and right away I've hit a snag:
> >
> > My build.xml is not at the root of my project, but in a build/ directory
> > (and has the basedir=".." attribute). It includes an XML fragment as an
> > entity using a relative path ./fragment.xml. I have a build.bat at the
> > project root that calls ant -buildfile build/build.xml. Everything works
> > fine with ANT.
> >
> > Now I added a build.xsl stylesheet transformation next to my build.xml,
> and
> > want to generate build.html using the 'style' target shown below.
> > Unfortunately, this target fails with:
> >
> > C:\acme\build\build.xml:1329: javax.xml.transform.TransformerException:
> > java.io.FileNotFound
> > Exception: .\fragment.xml (The system cannot find the file specified)
> >
> > To make the <style> work, I had to create a style.xml in the build
> directory
> > so that build.xml, fragment.xml, style.xml, and build.xsl are all in the
> > same directory, and call from it inside the build directory. If I can
this
> > little style.xml (using ANT) from the project root, it fails again.
> >
> > So it seems that entities are resolved based on the directory the ant
> > command is run from, rather than the directory of either the file
> > transformed (as ANT's XML parser does) or the stylesheet.
> >
> > What can I do? -DD
> >
> > C:\acme\build.bat
> > C:\acme\build\build.xml
> > C:\acme\build\build.xsl
> > C:\acme\build\style.xml
> >
> > <?xml version="1.0"?>
> >
> > <!DOCTYPE project [
> >   <!ENTITY sysproperties SYSTEM "file:./fragment.xml">
> > ]>
> >
> > <project name="acme" default="style" basedir="..">
> >   <target name="style">
> >     <style in="${basedir}/build/build.xml"
> >            out="${basedir}/build/build.html"
> >            style="${basedir}/build/build.xsl" />
> >   </target>
> >   ...
> > </project>
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message