AW: AW: How to override a property that was set in the command line via "-D..."

2014-07-31 Thread Knuplesch , Jürgen
ink they should be set in the same way. Cheers Al > Gesendet: Donnerstag, 31. Juli 2014 um 12:15 Uhr > Von: "Knuplesch, Jürgen" > An: "Ant Users List" > Betreff: AW: How to override a property that was set in the command line via > "-D..." > >

AW: How to override a property that was set in the command line via "-D..."

2014-07-31 Thread Knuplesch , Jürgen
Hello, because of the immutability of properties you have to redesign your scripts. The first time you set a property is it. You are usually not able t change it later. This is very important, because this is the only way to set properties from outside. Why does your command line call then use

AW: StarTeam Upgrade

2014-07-22 Thread Knuplesch , Jürgen
;...thou hast hidden these things from the wise and understanding and > revealed them to babes." > >> On 22 Jul 2014, at 12:10 am, Eric Fetzer >> wrote: >> >> What is "sth" Jürgen? >> >>> On Jul 21, 2014, at 9:38 AM, Knuplesch, Jürg

AW: StarTeam Upgrade

2014-07-21 Thread Knuplesch , Jürgen
Try and ask if sth. wont work -Ursprüngliche Nachricht- Von: Eric Fetzer [mailto:elstonk...@yahoo.com.INVALID] Gesendet: Donnerstag, 17. Juli 2014 18:48 An: Ant Users Betreff: StarTeam Upgrade We're upgrading our StarTeam version from 2009 to 14.2 and somewhere between 2009 and 14,

AW: create a new fileset in Java and in Ant Task

2014-02-26 Thread Knuplesch , Jürgen
leSet fs = (FileSet) rc; DirectoryScanner ds = null; try { ds = fs.getDirectoryScanner(getProject()); Jan > -Ursprüngliche Nachricht- > Von: Knuplesch, Jürgen [mailto:juergen.knuple...@icongmbh.de] > Gesendet: Dienstag, 25. Februar 2014 16:07 > An:

create a new fileset in Java and in Ant Task

2014-02-25 Thread Knuplesch , Jürgen
Hello, I want to create a new fileset inside a ANT-Task using this: FileSet createdFileset = new FileSet(); createdFileset.setDir(new File(basedir)); When I do this to get the files: createdFileset.getDirectoryScanner(); I get a NPE. What else do I need to do to set up a ne

AW: Problem: failed to create task or type runtarget

2014-01-29 Thread Knuplesch , Jürgen
Hello, This should also run using Mac: Did you copy the antcontrib.jar to your Mac? Can you show us your error log? I use on Windows and Linux Juergen -Ursprüngliche Nachricht- Von: BryanBerg [mailto:bb...@spawar.navy.mil] Gesendet: Mittwoch, 29. Januar 2014 01:18 An: user@ant.apache

AW: how to tell ant to run the task at the end of build

2013-10-29 Thread Knuplesch , Jürgen
Hallo, I wrote my own AntLogger to run a task in the end. This was necessary to rename log files that were otherwise locked by the Ant job: In the logger I call in the buildfinished (this method is part of the usual logger) method a method that starts the final target: public void buildFinis

AW: priority question

2012-08-30 Thread Knuplesch , Jürgen
Show us the ANT-code! Just set the classpath inside ANT. -Ursprüngliche Nachricht- Von: LoburDenis [mailto:d.lo...@samsung.com] Gesendet: Dienstag, 28. August 2012 15:33 An: user@ant.apache.org Cc: m.shy...@samsung.com Betreff: priority question Hello! I'm engineer in Samsung R&D Cente

AW: How to turn off the warnings during ant build?

2012-04-04 Thread Knuplesch , Jürgen
Just add the javac options that reduce the javac warnings into your javac task. This javac who tells you whats wrong, not Ant himself. -Ursprüngliche Nachricht- Von: xsli2 [mailto:xs...@yahoo.com] Gesendet: Mittwoch, 4. April 2012 15:23 An: user@ant.apache.org Betreff: How to turn off the

AW: the classes in rt.jar cannot be found during ant build

2012-04-04 Thread Knuplesch , Jürgen
What Java is Ant running with? -Ursprüngliche Nachricht- Von: xsli2 [mailto:xs...@yahoo.com] Gesendet: Montag, 2. April 2012 23:02 An: user@ant.apache.org Betreff: the classes in rt.jar cannot be found during ant build Hi, In my build.xml, ...

AW: Compiler Versionl question

2012-03-28 Thread Knuplesch , Jürgen
In the run configuration in Eclipse you need to check and probably adapt the Java version. You can use several Java VMs together witzh Eclipse, so you need to configure which one to use together with your ANT job. By default the default JRE from Eclipse is used. -Ursprüngliche Nachricht

AW: ANT Server faulting

2012-03-02 Thread Knuplesch , Jürgen
ANTServer belongs to antcontrib and is a very nice extension. You are able to start ANT builds on a remote machine by using antserver task... -Ursprüngliche Nachricht- Von: Benjamin Bryan [mailto:bbr...@litehouseinc.com] Gesendet: Mittwoch, 29. Februar 2012 18:17 An: user@ant.apache.org B

AW: Checking a property with ant

2008-01-24 Thread Knuplesch , Jürgen
Alternativly use if-Task of antcontrib to do it in one step. -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-299 Geschäftsführer: Uwe

Rmic problems

2008-01-24 Thread Knuplesch , Jürgen
Hi everybody, I come across with a problem with rmic. I might have found sth. Like a bug or mysterios behaviour of Ant 1.7. I was working wit Ant 1.6.5 and still do. But my Eclipse DIE changed to ANT 1.7. If I run the following rmic task: I get errors like: : Class de

AW: how to change testnames in junitreport?

2008-01-20 Thread Knuplesch , Jürgen
The simplest way I can think of ist to write 3 Tests and one method, that does the work. This method gets the parameters from the test_DE test_US method etc. Junit has therefore three Tests with names that show what your Test is testing. -- Jürgen Knupleschwww.icongmbh.de i

AW: Mail Task

2008-01-16 Thread Knuplesch , Jürgen
Please check for activate.jar, mail.jar files in your ANT_HOME/lib directory. Knuplesch, Jürgen wrote: > > When I run the mail task I often get this Errormessage: > > mailtest: > [mail] Failed to initialise MIME mail: javax/mail/MessagingException > [mail] Sendi

Mail Task

2008-01-11 Thread Knuplesch , Jürgen
When I run the mail task I often get this Errormessage: mailtest: [mail] Failed to initialise MIME mail: javax/mail/MessagingException [mail] Sending email: Mailtest [mail] Failed to send email BUILD FAILED C:\DopeBuildBase\Build\DopeBuildServer\dopebuild_ant.xml:2973: IO error sen

Refid and antcontrib if

2007-12-05 Thread Knuplesch , Jürgen
Hello, I use antcontribs "if" and have the following strange effect: If I define a refid in antfile-passage, that is never reached (using if, else) ant then Try to access the refid it has the value that ist set in the not reached code! Is this correct behaviour? My Antfile looks like: dope.fi

AW: Specify non-top level target

2007-11-20 Thread Knuplesch , Jürgen
In the outline in Eclipse ther is a button, by which you can hide internal targets. Internal targets are targets without description. -- Jürgen -Ursprüngliche Nachricht- Von: mjdenham [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. November 2007 19:25 An: user@ant.apache.org Betref

Javadoc Task

2007-11-14 Thread Knuplesch , Jürgen
My javadoc-Task does not create Javadoc for all of the classes I give him in a filest. It also does not do anything, when I add certain classes. What is wrong?

Out of memory JUNIT-report

2007-11-14 Thread Knuplesch , Jürgen
In my Ant file the junitreport Task runs out of memory! Where is the best place to increase the memory? Is it possible to fork junitreport? -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D

AW: zipfileset help

2007-11-14 Thread Knuplesch , Jürgen
Solution1: If you use Eclipse you can define the classpath in Eclipse (with all the jars) and then import it via geteclipseclasspath from Ant4eclipse project. Solution2: The hard way I solved this problem in a similar case was: 1.Using fileset to get the jar files. 2.Using the for Task from an

UNC path usage for Javadoc task and Windows XP

2007-11-09 Thread Knuplesch , Jürgen
Hello, I am working under Windows XP. I want to use an UNC-Path to put there documents created by Javadoc. The challenge occurs, that I am able to create a directory via mkdir, but the javadoc task interprets this path as a local path and not as a network path: The mk

AW: Creating Patch builds

2007-10-24 Thread Knuplesch , Jürgen
We set a Label for every .java File to show which files should get into the Patch. Then we checkout using this Label. The advantage is, that classes that should not go into the patch are not checkouted. The problem is, that the programmer sometimes forgets to set the Label. -- Jürgen Knuples

AW: Creating Patch builds

2007-10-24 Thread Knuplesch , Jürgen
Hello, We use to solve this by creating a jar file out of the old build and put it in the classpath, so that you are able to translate the new files. The problem occurs when the changes of the new files leads to changes in the .class files of files where teh .java code did not change. But for

AW: Memory and Ant

2007-10-24 Thread Knuplesch , Jürgen
r eg > maxmemory="128m"> > > This link might help you more > http://ant.apache.org/manual/CoreTasks/java.html > > Hth, > Sumit > > > -Original Message- > From: Knuplesch, Jürgen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 23, 2007 10:44 AM >

AW: AW: Memory and Ant

2007-10-23 Thread Knuplesch , Jürgen
@ant.apache.org Betreff: RE: AW: Memory and Ant -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Knuplesch, Jürgen <[EMAIL PROTECTED]> Sent: Tue, 23 Oct 2007 16:43:40 +0200 To: "Ant Users List" Subject: AW: Memory and Ant Hi Sumit, Thank yo

AW: Memory and Ant

2007-10-23 Thread Knuplesch , Jürgen
t; to the tasks. If you run ant with -v (verbose) option you would see that "maxmemory=128m" translates into java.exe -Xmx128m. HTH, Sumit To go far, explore first what is near.. -----Original Message- From: Knuplesch, Jürgen [mailto:[EMAIL PROTECTED] Sent: Tuesday, Oct

Memory and Ant

2007-10-23 Thread Knuplesch , Jürgen
Hello, Is it possible to increase the memory of an Ant-Buildprocess via "-Xmx128m" and where do I have to put it? My Buildprocess quits with a java.lang.OutOfMemoryError Message. Greetings -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711

AW: Junit tasks with TestSuite

2007-10-19 Thread Knuplesch , Jürgen
Maybe you need more memory?? I use sth. like this: -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbH Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 Von: [EMAIL PROTECTED] [mailto:[EMAIL PR

AW: keytool with ant

2007-10-17 Thread Knuplesch , Jürgen
Better is to use the genkey task of ANT. I prefer argument instead of argline, but then you have to set every single word. Instead of write -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40

Unless using more than one property

2007-10-17 Thread Knuplesch , Jürgen
Hello Is it possible to use two or more propertys with the unless attribut? The following doesnt seem to work: It looks like that the >,< is interpreted as part of the property. I cant find the answer to this question in the Ant-Doku. Greetings -- Jürgen Knupleschwww.i

Errorhandling using exec and cmd.exe

2007-10-12 Thread Knuplesch , Jürgen
Hello, We have an Ant-File that executes a Batch-File (Windows .bat) and if the Batchfile fails, We get a return code=0. But we want to evaluate errors. How can the Batchfile tell the ANT-Skript that an error occurred? Greetings Jürgen -- Jürgen Knupleschwww.icongmbh.d

Fileset Evaluation

2007-10-11 Thread Knuplesch , Jürgen
If I define a fileset via a patternset and a id like that: And now I add another file to the fileset-dir: ${dope.configdir.kunde} E.g. like that: Will editorHelp.jar be copied or not? Is

AW: Accessing Properties from Sub-Projects

2007-10-10 Thread Knuplesch , Jürgen
I used antcallback from antcontrib in my Buildfile: So I got back if one of my tests failed. antFetch is the same für calling external Buildfiles. Use http://sourceforge.net/project/showfiles.php?group_id=36177 to get antcontrib. -- Jürgen Knuplesch

AW: AW: Showing current classpath Ant is using in Build executing state

2007-10-10 Thread Knuplesch , Jürgen
Thank you! This is great, because I always was thinking of sth. Like that. There are so many problems with the classpath... -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart

Javac

2007-10-09 Thread Knuplesch , Jürgen
Hi, I want to use ANT with on a machine with several JDKs and JREs. How can I tell ANT which compiler to choose, without setting JAVA_HOME? The standard JAVA is a JRE, and so the compile task doesnt work at all. Greetings -- Jürgen Knupleschwww.icongmbh.de icon Systemhau

AW: Showing current classpath Ant is using in Build executing state

2007-10-08 Thread Knuplesch , Jürgen
Hello, Depending on the task you use, you can define a lot of classpaths. I usually use the classpath or classpathref attribute to set the classpath e.g. for the javac task. The question is: For which task you need the classpath and how do you set the classpath?? This is how i trace the classp

AW: How to use eclipse .classpath file in build process of ear/war to add selective dependent jars/rars.

2007-09-20 Thread Knuplesch , Jürgen
Hi There is a the ant4eclipse.jar which contains the tast geteclipseclasspath. Look at http://ant4eclipse.sourceforge.net/ant-for-eclipse-download.html Greetings -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40

Sorted Fileset

2007-09-13 Thread Knuplesch , Jürgen
Hello, To create a correct classpath it is sometimes necessary to order the .jar-Files in the right sequence. A fileset does not give the guarantee about the sequence. What we have ist a directory with .jar-Files that should be included into the classpath. Then I build the classpath by doing a

AW: newbie help: conditional exec

2007-09-11 Thread Knuplesch , Jürgen
Try this http://sourceforge.net/project/showfiles.php?group_id=36177 -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-299 Geschäftsfüh

AW: How to get the simple file name?

2007-09-10 Thread Knuplesch , Jürgen
Hello, My expirience is, that Ant always gives you the full path, without a chance to change it. If someone shows how (you could write your own Ant-Task), I would be very intersted. My solution is to write the full filename into a textfile and then delete the path with the replace task. Probab

AW: Problem with Ant and CVS?

2007-07-31 Thread Knuplesch , Jürgen
Hi Simon, I always found it better to call CVS via ANT using commandline and argument rather than command. So maybe you want to try sth. Similar to this: Hope this helps... -- Jürgen Knupleschwww.i

Dirset problems

2007-07-05 Thread Knuplesch , Jürgen
Hi I use tried to test the dirset wit the following lines (later I want to do sth. With some dirs): Sortlist ${sortlist.ausgabe1} The result are not directories, as I expected, but the only file that is in this path: Buildfile: D:\Entwicklung\JK Nightly Bu

AW: Ant within Eclipse Junit OutOfMemoryException

2007-06-28 Thread Knuplesch , Jürgen
Hi, I use an Ant Script tu run a lot of Junit Tests. I had to change the maxmemory to 1024m to let all the Tests run. But sadly I used Ant directly and not Eclipse. But this is how I solved my memory problem in the Ant-Task:

AW: "Overriding previous definition of reference" ... should I worry?

2007-06-28 Thread Knuplesch , Jürgen
Hello, You are able to change values of patternsets ids etc. You are in general not able to change properties (immutability). The warning means: If you dont want to change the value of this id, then you are in trouble. But if this is exactly want you want, then everythings fine. Greetings --

AW: Using for loop

2007-06-20 Thread Knuplesch , Jürgen
Use the for Task of the antcontrib Extension for Ant. Download: http://sourceforge.net/project/showfiles.php?group_id=36177 Tasks: http://ant-contrib.sourceforge.net/tasks/tasks/index.html You need to add antcontrib using the taskdef task (sometimes more tricky than it should), sth. Like:

AW: cvs behaviour

2007-06-12 Thread Knuplesch , Jürgen
Hello Do you use argument line or argument value? I always have troubles with argument line, because you dont know what cvs command you do. Use argument value for each command line argument as in the example I used: Greetings Jürgen -- Jü

AW: how to get a process id from a spawned task?

2007-06-08 Thread Knuplesch , Jürgen
As far as I know, there is the possibilty to set a timeout, if that is waht you want! -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-