ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: relative paths
Date Wed, 22 Jan 2003 16:58:49 GMT
No, it's older than that. You can use it with 1.5. --DD

-----Original Message-----
From: Derek A. Bodin [mailto:bodinda@uwec.edu] 
Sent: Wednesday, January 22, 2003 10:54 AM
To: 'Ant Users List'
Subject: RE: relative paths

Thanks, path convert is only in 1.5.1 right?  Because I am still having
problems getting 1.5.1 to work (1.5 works fine)

Thanks again

Derek

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com] 
Sent: Wednesday, January 22, 2003 10:20 AM
To: 'Ant Users List'
Subject: RE: relative paths

Forgot to mention that it's important to define jar-dir using <property
name="jar-dir" location="..." /> and use that property in the <map
from=""/>
as shown below, to avoid forward / backward slash issues. --DD

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com] 
Sent: Wednesday, January 22, 2003 10:17 AM
To: 'Ant Users List'
Subject: RE: relative paths

Use <pathconvert> with a <map>

    <fileset id="dsinfra-jars" dir="${jar-dir}">
      <include name="*.jar" />
      <include name="*.zip" />
      <exclude name="*_test.jar" />
    </fileset>

    <!-- Create pseudo Infra's JAR(s) with appropriate
         Class-Path: attribute in its manifest to avoid
         command line limitations with long classpath -->
    <pathconvert property="dsinfra-classpath"
                 refid="dsinfra-jars"
                 pathsep=" "
                 dirsep="/">
      <map from="${jar-dir}" to="all" />
    </pathconvert>

    <jar destfile="..." basedir="...">
      <manifest>
        <attribute name="Class-Path"
                   value="${dsinfra-classpath}"/>
...
      </manifest>
    </jar>

-----Original Message-----
From: Derek A. Bodin [mailto:bodinda@uwec.edu] 
Sent: Wednesday, January 22, 2003 10:12 AM
To: ant-user@jakarta.apache.org
Subject: relative paths

When using the path element ant automatically converts the path to a
direct path, is there any way to keep the path relative?  I am trying to
do this for the class-path element of the manifest file so that I can
move an application to another computer and have it work there also,
thanks.
 
<path id="class.path">
            <fileset dir="src/lib">
                        <include name="**/*.jar"/>
            </fileset>
 </path>
 
-Derek

--
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>

--
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