You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marco Struck <M....@PopNet.de> on 2001/01/02 17:19:16 UTC
manipulating filesets by
is there a possibility to manipulate filesets by <script>
or to deploy by <script> generated filesets ?
--
Marco Struck
Software Development
http://www.popnet.de
Re: manipulating filesets by
Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: "Marco Struck" <M....@PopNet.de>
To: <an...@jakarta.apache.org>
Sent: Tuesday, January 02, 2001 5:19 PM
Subject: manipulating filesets by <script>
> is there a possibility to manipulate filesets by <script>
> or to deploy by <script> generated filesets ?
>
Something like this?
<script language="javascript"> <![CDATA[
dir = VAMOS50.getProperty('build.vss') + '/' +
VAMOS50.getProperty('project.name');
file = new java.io.File(dir);
path = VAMOS50.createDataType('path');
fileset = VAMOS50.createDataType('fileset');
fileset.setDir(file);
fileset.setIncludes('*.xml');
path.addFileset(fileset);
VAMOS50.addReference('xml-files', path);
]]></script>
<property name="xml-files" refid="xml-files"/>
<java classname="de.hmorga.utils.XML2DBO">
<arg value="${xml-files}"/>
<arg value="-dbodir"/>
<arg value="${build.alldbo}"/>
<arg value="-dbocopy"/>
<arg value="${build.dbo}"/>
</java>
</target>
Nico
Re: manipulating filesets by
Posted by Jason Rosenberg <ja...@squaretrade.com>.
I have been doing lots of fileset manipulations
via javascript <script> tasks.
I generally create a new one, by calling the
createDataType('fileset') method of the current
project object.
You can then add paths and includes, etc., to the
fileset.
I would highly suggest browsing through the Ant
java source code. Look at Project.java and
FileSet.java, etc...It turns out that you can do
all kinds of stuff via javascript, as if you were just
using the Ant classes as a class library.
Jason
----- Original Message -----
From: "James Duncan Davidson" <du...@x180.net>
To: <an...@jakarta.apache.org>
Sent: Tuesday, January 02, 2001 5:28 PM
Subject: Re: manipulating filesets by <script>
> On 1/2/01 8:19 AM, "Marco Struck" <M....@PopNet.de> wrote:
>
> > is there a possibility to manipulate filesets by <script>
> > or to deploy by <script> generated filesets ?
>
> Currently it might be a bit hard to manipulate those. In Ant 2.0 once we
> have the internal object model nailed and cleanly exported out to tasks,
> script should be able to manipulate those.
>
> --
> James Duncan Davidson duncan@x180.net
> !try; do()
>
Re: manipulating filesets by
Posted by James Duncan Davidson <du...@x180.net>.
On 1/2/01 8:19 AM, "Marco Struck" <M....@PopNet.de> wrote:
> is there a possibility to manipulate filesets by <script>
> or to deploy by <script> generated filesets ?
Currently it might be a bit hard to manipulate those. In Ant 2.0 once we
have the internal object model nailed and cleanly exported out to tasks,
script should be able to manipulate those.
--
James Duncan Davidson duncan@x180.net
!try; do()