ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <Nico.Sees...@epost.de>
Subject Re: manipulating filesets by <script>
Date Tue, 02 Jan 2001 21:15:55 GMT
----- Original Message -----
From: "Marco Struck" <M.Struck@PopNet.de>
To: <ant-user@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





Mime
View raw message