You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Eli Tucker <ap...@nerdmonkey.com> on 2003/05/22 06:27:53 UTC
Creating lists of files in a property
I'm wondering if there is a way to create a list of files in a directory
and store it in a property.
I've seen a solution in the mailing list archives that works for windows
<
http://archives.apache.org/eyebrowse/ReadMsg?listName=user@ant.apache.or
g
<http://archives.apache.org/eyebrowse/ReadMsg?listName=user@ant.apache.o
rg&msgId=584387> &msgId=584387> but am hoping to find a cross platform
solution.
What I'm trying to do is create a manifest file that lists each JAR file
in my jars directory in the Class-Path value attribute. For example:
...
<manifest>
<attribute name="Main-Class" value="com.somwhere.RB" />
<attribute name="Class-Path" value="log4j-1.2.8.jar jdom.jar etc.jar"
/>
</manifest>
...
What I would like to do is replace the Class-Path value with a property
that is created by examining my lib directory. If I have to, I'll
create a new ANT task. Just thought I would ask first. Anyone have any
other ideas? (Please reply to me as well as the list if possible.)
Thanks,
- Eli Tucker
http://nerdmonkey.com <http://nerdmonkey.com/>
RE: PVCS Problem
Posted by "vijay.gupta" <vi...@mphasis.com>.
I guess nobody in this list has ever used pvcs
task.....
any way thanks
-----Original Message-----
From: vijay.gupta [mailto:vijay.gupta@mphasis.com]
Sent: Friday, May 23, 2003 10:29 AM
To: 'Ant Users List'
Subject: RE: PVCS Problem
is somebody there who had this kind of problem ?
Thanks
Vijay
-----Original Message-----
From: vijay.gupta [mailto:vijay.gupta@mphasis.com]
Sent: Thursday, May 22, 2003 2:21 PM
To: 'Ant Users List'
Subject: PVCS Problem
Hi,
I have this pvcs task:
<pvcs repository="${pvcs_repository}"
pvcsproject="/com" label="${pvcs_label}"
workspace="/@/${pvcs_user}/${pvcs_wrkspc}"
linestart="${linestart}">
</pvcs>
repository is mapped to v: drive and in
build.properties file, property
linestart=V:
when I run this I get this error;
[pvcs] PVCS Version Manager (PCLI) v7.5.0.0
(Build 256) for Windows NT/80x8
6
[pvcs] Copyright 1985-2002 MERANT. All
rights reserved.
[pvcs] Creating folders
[pvcs] Considering
""V:\Archive\gse\com\fedex\cps\api\CpsService.java
_v(D:\
build\JUNE2003\com\fedex\cps\api\CpsService.java)"
"
BUILD FAILED
file:D:/build/build.xml:14: Failed executing: pcli
lvf -z -aw -sp/@/vgupta/vijay
-prV:\pvcs\projdb\PHarvey-db /com. Exception:
MessageFormat parse error!
at
org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs.e
xecute(Pvcs.java:29
4)
at
org.apache.tools.ant.Task.perform(Task.java:341)
at
org.apache.tools.ant.Target.execute(Target.java:30
9)
at
org.apache.tools.ant.Target.performTasks(Target.ja
va:336)
at
org.apache.tools.ant.Project.executeTarget(Project
.java:1339)
at
org.apache.tools.ant.Project.executeTargets(Projec
t.java:1255)
at
org.apache.tools.ant.Main.runBuild(Main.java:609)
at
org.apache.tools.ant.Main.start(Main.java:196)
at
org.apache.tools.ant.Main.main(Main.java:235)
I have tried V:, V\:, "V:, "V\:, \"V\: options for
linestart value.
Thanks in advance
Vijay
--------------------------------------------------
-------------------
To unsubscribe, e-mail:
user-unsubscribe@ant.apache.org
For additional commands, e-mail:
user-help@ant.apache.org
--------------------------------------------------
-------------------
To unsubscribe, e-mail:
user-unsubscribe@ant.apache.org
For additional commands, e-mail:
user-help@ant.apache.org
RE: PVCS Problem
Posted by "vijay.gupta" <vi...@mphasis.com>.
is somebody there who had this kind of problem ?
Thanks
Vijay
-----Original Message-----
From: vijay.gupta [mailto:vijay.gupta@mphasis.com]
Sent: Thursday, May 22, 2003 2:21 PM
To: 'Ant Users List'
Subject: PVCS Problem
Hi,
I have this pvcs task:
<pvcs repository="${pvcs_repository}"
pvcsproject="/com" label="${pvcs_label}"
workspace="/@/${pvcs_user}/${pvcs_wrkspc}"
linestart="${linestart}">
</pvcs>
repository is mapped to v: drive and in
build.properties file, property
linestart=V:
when I run this I get this error;
[pvcs] PVCS Version Manager (PCLI) v7.5.0.0
(Build 256) for Windows NT/80x8
6
[pvcs] Copyright 1985-2002 MERANT. All
rights reserved.
[pvcs] Creating folders
[pvcs] Considering
""V:\Archive\gse\com\fedex\cps\api\CpsService.java
_v(D:\
build\JUNE2003\com\fedex\cps\api\CpsService.java)"
"
BUILD FAILED
file:D:/build/build.xml:14: Failed executing: pcli
lvf -z -aw -sp/@/vgupta/vijay
-prV:\pvcs\projdb\PHarvey-db /com. Exception:
MessageFormat parse error!
at
org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs.e
xecute(Pvcs.java:29
4)
at
org.apache.tools.ant.Task.perform(Task.java:341)
at
org.apache.tools.ant.Target.execute(Target.java:30
9)
at
org.apache.tools.ant.Target.performTasks(Target.ja
va:336)
at
org.apache.tools.ant.Project.executeTarget(Project
.java:1339)
at
org.apache.tools.ant.Project.executeTargets(Projec
t.java:1255)
at
org.apache.tools.ant.Main.runBuild(Main.java:609)
at
org.apache.tools.ant.Main.start(Main.java:196)
at
org.apache.tools.ant.Main.main(Main.java:235)
I have tried V:, V\:, "V:, "V\:, \"V\: options for
linestart value.
Thanks in advance
Vijay
--------------------------------------------------
-------------------
To unsubscribe, e-mail:
user-unsubscribe@ant.apache.org
For additional commands, e-mail:
user-help@ant.apache.org
PVCS Problem
Posted by "vijay.gupta" <vi...@mphasis.com>.
Hi,
I have this pvcs task:
<pvcs repository="${pvcs_repository}"
pvcsproject="/com" label="${pvcs_label}"
workspace="/@/${pvcs_user}/${pvcs_wrkspc}"
linestart="${linestart}">
</pvcs>
and in build.properties file, property
linestart=V:
when I run this I get this error;
[pvcs] PVCS Version Manager (PCLI) v7.5.0.0
(Build 256) for Windows NT/80x8
6
[pvcs] Copyright 1985-2002 MERANT. All
rights reserved.
[pvcs] Creating folders
[pvcs] Considering
""V:\Archive\gse\com\fedex\cps\api\CpsService.java
_v(D:\
build\JUNE2003\com\fedex\cps\api\CpsService.java)"
"
BUILD FAILED
file:D:/build/build.xml:14: Failed executing: pcli
lvf -z -aw -sp/@/vgupta/vijay
-prV:\pvcs\projdb\PHarvey-db /com. Exception:
MessageFormat parse error!
at
org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs.e
xecute(Pvcs.java:29
4)
at
org.apache.tools.ant.Task.perform(Task.java:341)
at
org.apache.tools.ant.Target.execute(Target.java:30
9)
at
org.apache.tools.ant.Target.performTasks(Target.ja
va:336)
at
org.apache.tools.ant.Project.executeTarget(Project
.java:1339)
at
org.apache.tools.ant.Project.executeTargets(Projec
t.java:1255)
at
org.apache.tools.ant.Main.runBuild(Main.java:609)
at
org.apache.tools.ant.Main.start(Main.java:196)
at
org.apache.tools.ant.Main.main(Main.java:235)
I have tried V:, V\:, "V:, "V\:, \"V\: options for
linestart value. Any help will be appriciated.
Thanks in advance
Vijay
Re: Creating lists of files in a property
Posted by Jacob Kjome <ho...@visi.com>.
build up a <path> and use <pathconvert> to create a property with the list
of files you put in your <path>.
Jake
At 09:27 PM 5/21/2003 -0700, you wrote:
>I'm wondering if there is a way to create a list of files in a directory
>and store it in a property.
>
>I've seen a solution in the mailing list archives that works for windows
><
>http://archives.apache.org/eyebrowse/ReadMsg?listName=user@ant.apache.or
>g
><http://archives.apache.org/eyebrowse/ReadMsg?listName=user@ant.apache.o
>rg&msgId=584387> &msgId=584387> but am hoping to find a cross platform
>solution.
>
>What I'm trying to do is create a manifest file that lists each JAR file
>in my jars directory in the Class-Path value attribute. For example:
>
>...
><manifest>
> <attribute name="Main-Class" value="com.somwhere.RB" />
> <attribute name="Class-Path" value="log4j-1.2.8.jar jdom.jar etc.jar"
>/>
></manifest>
>...
>
>What I would like to do is replace the Class-Path value with a property
>that is created by examining my lib directory. If I have to, I'll
>create a new ANT task. Just thought I would ask first. Anyone have any
>other ideas? (Please reply to me as well as the list if possible.)
>
> Thanks,
> - Eli Tucker
>
>http://nerdmonkey.com <http://nerdmonkey.com/>
>