Re: Creating a macrodef dynamically...within beanshell or any scripting language?

2011-12-08 Thread Scot P. Floess
I get in both macrodef's and Ant Contrib for... I'm completely open to not creating a macrodef on the fly if there is a simple way to get that param expansion working easily :) I'm looking to do something like this: On Thu, 8 Dec 2011, Scot P. Floess wrote: All,

Creating a macrodef dynamically...within beanshell or any scripting language?

2011-12-08 Thread Scot P. Floess
All, I have what may seem like a strange question... I was looking through the source for Ant Contrib's ForTask.java... I see it uses MacroDef internally as well as MacroInstance to execute(). I've got a script def that has a child element entitled "sequential" of type org.apache.tools.ant

AW: Creating a fileset from a list of filenames

2010-01-20 Thread Jan.Materne
>I've written a custom ant task that performs Checkstyle only >on modified >files. Or on files modified since some revision. > >The purpose is to gradually introduce a code quality policy on legacy >projects. > >I plan to submit a patch back, meantime if you need it *now*, >then email me >(uses

AW: Creating a fileset from a list of filenames

2010-01-20 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: jasper.blues [mailto:jasper.reloa...@gmail.com] >Gesendet: Mittwoch, 20. Januar 2010 08:41 >An: user@ant.apache.org >Betreff: Re: Creating a fileset from a list of filenames > > >I've written a custom ant

Re: Creating a fileset from a list of filenames

2010-01-19 Thread jasper.blues
> > > > > The contents of this e-mail are intended for the named addressee only. It > contains information that may be confidential. Unless you are the named > addressee or an authorized designee, you may not copy or use it, or > disclose it to anyone else. If you rec

Re: Creating a fileset from a list of filenames

2009-11-04 Thread David Weintraub
> > On Tue, Nov 3, 2009 at 1:33 PM, Wray, Nathan wrote: > Hi David, > > It has to do with the procedures I'm trying to piggyback onto. The ant > target creates some required code review documentation. The goal is to > have the ant target fail, rather than having the commit fail as you > typically

RE: Creating a fileset from a list of filenames

2009-11-03 Thread Wray, Nathan
ist Subject: Re: Creating a fileset from a list of filenames Just curious: Why are you using Ant for this? Why not have a post-commit script that runs the check on these files? Or, even better, use Hudson which is a continuous build system. It'll automatically run your build everytime someo

Re: Creating a fileset from a list of filenames

2009-11-03 Thread David Weintraub
Just curious: Why are you using Ant for this? Why not have a post-commit script that runs the check on these files? Or, even better, use Hudson which is a continuous build system. It'll automatically run your build everytime someone does a Subversion checkin. Plus, it has a CheckStyle plugin whic

Re: Creating a fileset from a list of filenames

2009-11-03 Thread Matt Benson
--- On Tue, 11/3/09, Wray, Nathan wrote: > From: Wray, Nathan > Subject: Creating a fileset from a list of filenames > To: user@ant.apache.org > Date: Tuesday, November 3, 2009, 7:16 AM > Hi All; > > > > I'm trying to identify modified java files in

Creating a fileset from a list of filenames

2009-11-03 Thread Wray, Nathan
Hi All; I'm trying to identify modified java files in an SVN working copy and run checkstyle on these files. So far I've got a property with a list of everything modified like: /path/file1;/path/file2;/path/file3 It seems like I need something the opposite of pathconvert to turn this p

AW: Creating a keygeneration task using ant.

2009-10-14 Thread Knuplesch, Juergen
] Gesendet: Mittwoch, 14. Oktober 2009 09:37 An: user@ant.apache.org Betreff: Creating a keygeneration task using ant. Hi, I've been spending some time migrating most of a building environment over to ant to provide a simpler and cross-system building solution for a client/server java applic

Creating a keygeneration task using ant.

2009-10-14 Thread Max Danielsson
Hi, I've been spending some time migrating most of a building environment over to ant to provide a simpler and cross-system building solution for a client/server java application and i got kinda stuck at one particular step when it comes to creating SSL keys. I found the wonderful task Genkey

Re: AW: classpath problem when creating a jar

2009-04-07 Thread Luca Ferrari
On Tuesday 7 April 2009 14:55:33 Martin Gainty's cat walking on the keyboard wrote: > what does the jar's manifest display? Here it is: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 10.0-b23 (Sun Microsystems Inc.) Built-By: luca Main-Class: g2.main.Main Class-Path: aspectjrt.j

RE: AW: classpath problem when creating a jar

2009-04-07 Thread Martin Gainty
inito.it > To: user@ant.apache.org > Subject: Re: AW: classpath problem when creating a jar > Date: Tue, 7 Apr 2009 13:53:04 +0200 > > On Tuesday 7 April 2009 13:43:41 jan.mate...@rzf.fin-nrw.de's cat walking on > the keyboard wrote: > > So you got a directory layout w

Re: AW: classpath problem when creating a jar

2009-04-07 Thread Luca Ferrari
On Tuesday 7 April 2009 13:43:41 jan.mate...@rzf.fin-nrw.de's cat walking on the keyboard wrote: > So you got a directory layout with > > .../ > >| app.jar {Class-Path: ./conf } > >+-- conf > *.properties Yes, that's the final layout. But I don't get why it is not working. Luca

AW: classpath problem when creating a jar

2009-04-07 Thread Jan.Materne
>I've got my source tree that includes a conf directory with different >configuration files, including a resource bundle properties file. >Now in the jar task of my build file I've got the following entry: > > > >and before that I have a task that copies the conf directory >in the deployment dir

classpath problem when creating a jar

2009-04-07 Thread Luca Ferrari
Hi all, I've got my source tree that includes a conf directory with different configuration files, including a resource bundle properties file. Now in the jar task of my build file I've got the following entry: and before that I have a task that copies the conf directory in the deployment dir

Creating a manifest for a jar file

2008-12-16 Thread Chuck Holzwarth
I wrote a java program to perform pre-commit processing for subversion. I had originally written it with a static main. I removed the static definition from the main class. I can't seem to find a way to declare the manifest. What I currently have is: src/process_checkin/manifest.mf contains: M

Re: problems creating a jar

2008-02-20 Thread Steve Loughran
Dimitris Mouchritsas wrote: Steve Loughran wrote: Steve, creating a tmp dir to create a complicated structure inside a jar file is the recommended approach? Is there a better way to do it? If the tmp dir is the way to go I suppose it's best not to delete this dir, except on a &

Re: problems creating a jar

2008-02-20 Thread Dimitris Mouchritsas
ribute Steve, creating a tmp dir to create a complicated structure inside a jar file is the recommended approach? Is there a better way to do it? If the tmp dir is the way to go I suppose it's best not to delete this dir, except on a "clean" build right? This would allow for t

Re: problems creating a jar

2008-02-20 Thread Steve Loughran
Luca Ferrari wrote: On Wednesday 20 February 2008 Dimitris Mouchritsas's cat, walking on the keyboard, wrote: So for example you create: /dist tmp/ classes/ img/ lib/ and then you etc. But in this case into the jar I will have also the classes directory, while it should

Re: problems creating a jar

2008-02-20 Thread Luca Ferrari
On Wednesday 20 February 2008 Dimitris Mouchritsas's cat, walking on the keyboard, wrote: > So for example you create: > /dist >tmp/ > classes/ > img/ > lib/ > > and then you basedir="${dist.dir}/tmp/"> etc. But in this case into the jar I will have also the classes directo

Re: problems creating a jar

2008-02-20 Thread Dimitris Mouchritsas
Luca Ferrari wrote: Hi guys, I've got a problem creating a buildfile for a project of mine, where I'd like also to build a jar as final step. This is source tree: projectRoot +src // java sources +srcTest // junit sour

problems creating a jar

2008-02-20 Thread Luca Ferrari
Hi guys, I've got a problem creating a buildfile for a project of mine, where I'd like also to build a jar as final step. This is source tree: projectRoot +src // java sources +srcTest // junit sources +img // ic

Re: Creating a list of entries

2008-02-19 Thread Samuel Monsarrat
Just use the (http://ant.apache.org/manual/CoreTasks/concat.html) task to create your property file in any way you like. Sam. Z W <[EMAIL PROTECTED]> wrote: Hi I have a list of properties in a properties file. I like to write these property values into a file to be used as an input to a shell

Re: Creating a list of entries

2008-02-19 Thread Chuck Holzwarth
You may want to look at the echo command. You should be able to use something like: Property_Name : ${Property_Name} You can create fairly complex files this way. You may have to set append to false for the first echo just in case you are re-using the file. Z W <[EMAIL PROTECTED]> wrote: Hi I

AW: Creating a list of entries

2008-02-13 Thread Jan.Materne
1) before 2) with a Jan > -Ursprüngliche Nachricht- > Von: Z W [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Februar 2008 10:54 > An: Ant Users List > Betreff: Re: Creating a list of entries > > This task seems to replace/overwrites the existing file

Re: Creating a list of entries

2008-02-13 Thread Z W
t; On Feb 13, 2008 12:56 AM, <[EMAIL PROTECTED]> wrote: > > > replacint "=" by " : " ? > > > > Jan > > > > > -Ursprüngliche Nachricht- > > > Von: Z W [mailto:[EMAIL PROTECTED] > > > Gesendet: Mittwoch, 1

Re: Creating a list of entries

2008-02-13 Thread Z W
n: Z W [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 13. Februar 2008 09:30 > > An: Ant Users List > > Betreff: Re: Creating a list of entries > > > > Jan > > > > I have a list of entries in a properties file > > > > apple=1 > > orange

AW: Creating a list of entries

2008-02-13 Thread Jan.Materne
replacint "=" by " : " ? Jan > -Ursprüngliche Nachricht- > Von: Z W [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Februar 2008 09:30 > An: Ant Users List > Betreff: Re: Creating a list of entries > > Jan > > I have a list of entri

Re: Creating a list of entries

2008-02-13 Thread Z W
t; wrote: > My first thought was: > My second thought is: what do want to achieve? Can you post an example? > > > Jan > > > -Ursprüngliche Nachricht- > > Von: Z W [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 13. Februar 2008 07:48 > > An: Ant

AW: Creating a list of entries

2008-02-12 Thread Jan.Materne
My first thought was: My second thought is: what do want to achieve? Can you post an example? Jan > -Ursprüngliche Nachricht- > Von: Z W [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 13. Februar 2008 07:48 > An: Ant Users List > Betreff: Creating a list of entries

Creating a list of entries

2008-02-12 Thread Z W
Hi I have a list of properties in a properties file. I like to write these property values into a file to be used as an input to a shell script using sshexec task. I like to know if there's way to achieve this using Ant. Any suggestions ? Thanks

Re: creating a build file via another build file

2007-08-17 Thread Vihan Pandey
> > You could leave that or you have to use and encode the > xml-charachter (<>&...). Now that I look again the declaration is not really necessary :P I have a little perl script for masking - for my own need: > > ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-<-

AW: creating a build file via another build file

2007-08-17 Thread Jan.Materne
<exec executable="svn"> <arg value="co"/> <arg value="http://foo.com/svn/repos/"; /> </exec> </target> </project> Jan -Ursprüngliche Nachricht- Von: Vihan Pande

creating a build file via another build file

2007-08-17 Thread Vihan Pandey
Hello, I have an a build file which generates another build file and then executes it. I am creating the 2nd build file via an echo task to the file. Something like this : this is deploy.xml :

Creating a Zip File Programmatically

2007-06-20 Thread Dempsey K Bullock
I'm fairly new to extending Ant using custom tasks. I need to create a Zip Task programmatically in order to package a set of directories. So far, I've come up with the following. Basically, I'm creating a Zip Task. Then I'm adding ZipFileSets to the Zip Task. Everyt

Re: [resolved]AW: Problem creating a task to generate java from an EMF model

2006-11-07 Thread anne robert
taskdefs/EcoreGeneratorTask.html -Ursprüngliche Nachricht- Von: Dominique Devienne [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 29. Oktober 2006 01:12 An: Ant Users List Betreff: Re: Problem creating a task to generate java from an EMF model On 10/27/06, anne robert <[EMAIL PROTECTED]> wrote: her

AW: Problem creating a task to generate java from an EMF model

2006-10-29 Thread Jan.Materne
adoc/org/eclipse/emf/importer/ecore/taskdefs/EcoreGeneratorTask.html >-Ursprüngliche Nachricht- >Von: Dominique Devienne [mailto:[EMAIL PROTECTED] >Gesendet: Sonntag, 29. Oktober 2006 01:12 >An: Ant Users List >Betreff: Re: Problem creating a task to generate java from an E

Re: Problem creating a task to generate java from an EMF model

2006-10-28 Thread Dominique Devienne
On 10/27/06, anne robert <[EMAIL PROTECTED]> wrote: here is the debug trace It appears that the class is loaded OK, yet you get an exception when Ant calls the constructor for the task. Sorry, but I don't know why. Are you sure this is a valid task? --DD ---

AW: Problem creating a task to generate java from an EMF model

2006-10-28 Thread anne robert
Hi, here is the debug trace Thanks for your help, Anne Robert -- Anne Robert | tel : (+33) (0)4 56 52 04 44 VERIMAG | fax : (+33) (0)4 56 52 03 44 Centre Equation | F - 38610 Gieres | e-ma

AW: Problem creating a task to generate java from an EMF model

2006-10-27 Thread Jan.Materne
Please run the build in debug mode an add the stacktrace. Jan >-Ursprüngliche Nachricht- >Von: anne robert [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 26. Oktober 2006 11:02 >An: user@ant.apache.org >Betreff: Problem creating a task to generate java from an EMF mod

Problem creating a task to generate java from an EMF model

2006-10-26 Thread anne robert
Hi, I am trying to generate the java classes for an EMF model, using ant. I ave defined the emfGen task to call emf generation. when I call this task, I have the following error : BUILD FAILED /home/arobert/workspace/CGenerator/build.xml:13: Could not create type emfGen du e to java.lang.Insta

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
thanks Matt, works great! Matt Benson wrote: You talk about keeping your file indented correctly... I wouldn't consider that necessary anyway... In any event, the attached buildfile shows how to use concat or echo, sacrificing formatting, then using a task per line. -Matt --- Rakesh Patel <[E

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Matt Benson
You talk about keeping your file indented correctly... I wouldn't consider that necessary anyway... In any event, the attached buildfile shows how to use concat or echo, sacrificing formatting, then using a task per line. -Matt --- Rakesh Patel <[EMAIL PROTECTED]> wrote: > Hi Matt, > > can you

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
Hi Matt, can you give me an example of using ? I am already using fixlastline=true with no result. Thanks Rakesh Matt Benson wrote: --- Rakesh Patel <[EMAIL PROTECTED]> wrote: Hi, almost there with the concat task but am having problems with keeping my build.xml file formatted corre

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Matt Benson
--- Rakesh Patel <[EMAIL PROTECTED]> wrote: > Hi, > > almost there with the concat task but am having > problems with keeping my > build.xml file formatted correctly and giving the > text to pass in ie if > each line is indented, the indents go into the file. > > I tried individual staements b

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
Hi, almost there with the concat task but am having problems with keeping my build.xml file formatted correctly and giving the text to pass in ie if each line is indented, the indents go into the file. I tried individual staements but i can't seem to generate a new line. Here's what i have s

AW: Creating a file programmaticaly

2006-04-13 Thread Jan.Materne
user scott tiger put *.war quit or with use of properties user ${db.user} ${db.pwd} put *.war quit Jan >that seems to only produce name value pairs. Unfortunately, >the file i want to create looks more like this: > >user >scott >tiger >put *.war >quit ---

Re: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
that seems to only produce name value pairs. Unfortunately, the file i want to create looks more like this: user scott tiger put *.war quit Cheers Rakesh Steve Loughran wrote: Rakesh Patel wrote: Hi, looking at the core ant tasks, i couldn't see any obvious way to create a text file on

Re: Creating a file programmaticaly

2006-04-13 Thread Steve Loughran
Rakesh Patel wrote: Hi, looking at the core ant tasks, i couldn't see any obvious way to create a text file on the fly and put text in it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
Hi, looking at the core ant tasks, i couldn't see any obvious way to create a text file on the fly and put text in it. Any ideas? Cheers Rakesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: Creating a task for getting the current target in a project

2006-01-23 Thread Stefan Bodewig
On Mon, 23 Jan 2006, none ofyourbusiness <[EMAIL PROTECTED]> wrote: > Thats why we would like to make these dependancies optional for > these 2 targets. We would like check for the availibilty of these > jars only if the target is something else then "clean" or "package" .. check for jar

Creating a task for getting the current target in a project

2006-01-23 Thread none ofyourbusiness
hi, In our ant script we do an antcall at a certain moment. This antcall call's another xml ant script with a specific target. This called xml ant script contains a project with mulitple targets, and outside those targets, it also checks for the availability of certain 3th party jars and puts

RE: Creating a custom task library

2005-08-22 Thread Mark Claassen
-4014 -Original Message- From: Jeffrey E Care [mailto:[EMAIL PROTECTED] Sent: Monday, August 22, 2005 1:23 PM To: Ant Users List Subject: Re: Creating a custom task library http://ant.apache.org/manual/CoreTypes/antlib.html -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release

Re: Creating a custom task library

2005-08-22 Thread Jeffrey E Care
http://ant.apache.org/manual/CoreTypes/antlib.html -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Mark Claassen <[EMAIL PROTECTED]> wrote on 08/22/2005 02:14:24 PM: > Is there any way to include the task definition descriptors

Creating a custom task library

2005-08-22 Thread Mark Claassen
Is there any way to include the task definition descriptors in a jar file, AKA custom tag libraries in JSP? For instance, I create a library with two tasks, HelloEarth and HelloMars. To use this I need to define the tasks using taskdef statements in my other ant scripts. It would be cool to incor

RE: Need help creating a WAR task

2005-06-28 Thread Dominique Devienne
> From: Paul Goepfert [mailto:[EMAIL PROTECTED] > > I am creating a WAR task in my build.xml file. How do I move two > configuration xml files that are not my web.xml file to my war file? I > would like to have these files in a dir called conf within the WEB-INF > file. I

Need help creating a WAR task

2005-06-28 Thread Paul Goepfert
Hi all, I am creating a WAR task in my build.xml file. How do I move two configuration xml files that are not my web.xml file to my war file? I would like to have these files in a dir called conf within the WEB-INF file. -Paul

zipfileset in a path WAS creating a

2005-05-24 Thread Matt Benson
; wrote: > Hello Hanasaki, > > I wonder whether there is not something like that in > Ant 1.7. > Matt ? Peter ? > > Cheers, > > Antoine > > --- Ursprüngliche Nachricht --- > > Von: hanasaki <[EMAIL PROTECTED]> > > An: Ant Users List > > B

Re: creating a

2005-05-24 Thread Antoine Levy-Lambert
Hello Hanasaki, I wonder whether there is not something like that in Ant 1.7. Matt ? Peter ? Cheers, Antoine > --- Ursprüngliche Nachricht --- > Von: hanasaki <[EMAIL PROTECTED]> > An: Ant Users List > Betreff: Re: creating a Datum: Tue, 24 May 2005 00:47:13 -0500 >

Re: creating a

2005-05-23 Thread hanasaki
works like a champ!thanks... hmm anyway to do a zipfileset in a path? Antoine Levy-Lambert wrote: Hello Hanasaki, what you can do is nest a in your war task invocation. Cheers, Antoine hanasaki wrote: how

Re: creating a

2005-05-23 Thread Antoine Levy-Lambert
Hello Hanasaki, what you can do is nest a in your war task invocation. Cheers, Antoine hanasaki wrote: how can some .jar files from one WAR be added to another WAR?

creating a

2005-05-23 Thread hanasaki
how can some .jar files from one WAR be added to another WAR? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: creating a fileset and using it later with

2005-02-08 Thread Jan . Materne
... Jan > -Ursprüngliche Nachricht- > Von: Marion, Patrick [mailto:[EMAIL PROTECTED] > Gesendet am: Samstag, 5. Februar 2005 00:38 > An: 'user@ant.apache.org' > Betreff: creating a fileset and using it later with > > Is it possible to creat

creating a fileset and using it later with

2005-02-04 Thread Marion, Patrick
Is it possible to create a fileset at somepoint with a "refid" of some sorts and refer to this refid later on in a task? Thanks. P - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: creating a custom Condition

2004-06-23 Thread Jeffrey Bacon
;> the "Concepts and Types" link on the left. >> >> > Also, it is only in ant 1.6+ that one can have custom conditions. > > >> >> >>> -Original Message- >>> From: Jeffrey Bacon [mailto:[EMAIL PROTECTED] >>>

Re: creating a custom Condition

2004-06-23 Thread Jeffrey Bacon
y, June 17, 2004 3:37 PM To: Ant Users List Subject: Re: creating a custom Condition thanks. Is there documentation for this anywhere? I read "Java Development with Ant" by Erik Hatcher & Steve Loughran which coevers Ant 1.5 and it didn't mention this. Hopefully there will be a new

Re: Creating a java file

2004-02-23 Thread Pritesh saharey
Thanx but i wanted to create the whole VersionDate.java file and not only the date to be displayed. Pritesh Saharey BE(Mech) Software Engineer Apsora(Ind.)Pvt. Ltd., Pune http://www.apsora.com http://in.geocities.com/priteshsaharey/ --- RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote: Pritesh, T

AW: Creating a java file

2004-02-23 Thread Hagen, Christian
t; Gesendet: Montag, 23. Februar 2004 14:00 > An: Ant Users List > Betreff: Re: Creating a java file > > Pritesh, > > Take a look at FilterSets in the manual, under "Concepts and Types". > > /t > > > Pritesh saharey wrote: > > >Hello All,

Re: Creating a java file

2004-02-23 Thread RADEMAKERS Tanguy
Pritesh, Take a look at FilterSets in the manual, under "Concepts and Types". /t Pritesh saharey wrote: Hello All, A very simple problem for you, i would like to create a java file using ant in which i want to a code something like this // public class VersionDate { publ

Creating a java file

2004-02-23 Thread Pritesh saharey
Hello All, A very simple problem for you, i would like to create a java file using ant in which i want to a code something like this // public class VersionDate { public static String VersionDate = " Mon Dec 15 17:16:45 IST 2003 ";} // In this java code Ver

Creating a final build summary output file.

2003-07-28 Thread sunil singh
Hi, I have quite a few ant projects and sub-projects for building our whole stack. The master ant script basically calls a bunch of ant scripts in the tree, what I am interested in is creating a final build summary output file, which will give a snapshot of the whole build. For example : the