AW: How can I check if file exists in gz compress file?

2011-05-09 Thread Knuplesch, Juergen
You could alternatively try to untar just the file you want to check. This might result in a build failure, that you can catch with antcontrib -Ursprüngliche Nachricht- Von: Ben Tu [mailto:ben...@gmail.com] Gesendet: Freitag, 6. Mai 2011 18:09 An: user@ant.apache.org Betreff: How can I ch

references id names stored in properties

2011-06-03 Thread Knuplesch, Juergen
Hello, I want to call Ant from another Ant File and send some filsets: sth like this: The variable local.filesetlist stores now a list of two filset ids. In antfile2 I want to do sth. like this (using antcontrib):

AW: references id names stored in properties

2011-06-03 Thread Knuplesch, Juergen
o an object defined elsewhere. Only yields reasonable results for references to PATH like structures or properties." Rob direct: +1.613.270.5796 | robert.ech...@windriver.com > -----Original Message- > From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] > Se

AW: Including something from Ant contrib

2011-06-29 Thread Knuplesch, Juergen
You need to run taskdef: -Ursprüngliche Nachricht- Von: laredotornado [mailto:laredotorn...@gmail.com] Gesendet: Dienstag, 28. Juni 2011 17:32 An: user@ant.apache.org Betreff: Including something from Ant contrib Hi, I'm using Ant 1.8.1. I have downloaded ant-contrib-1.0b3.jar a

AW: optional depends for targets

2011-07-21 Thread Knuplesch, Juergen
I Use the from antcontrib to achieve this. -Ursprüngliche Nachricht- Von: Vimil Saju [mailto:vimils...@yahoo.com] Gesendet: Donnerstag, 21. Juli 2011 23:17 An: Ant Users List Betreff: optional depends for targets Hi, Is it possible for a target to optionally depend on another target? F

AW: Is required within a block?

2011-07-25 Thread Knuplesch, Juergen
As far as I know: yes! -Ursprüngliche Nachricht- Von: Steve Amerige [mailto:steve.amer...@sas.com] Gesendet: Montag, 25. Juli 2011 22:25 An: Ant Users List Betreff: Is required within a block? An easy question, I hope: Is required within a block? Assume that there is only one

AW: fork, JUnit and Linux

2011-11-14 Thread Knuplesch, Juergen
Linux On 2011-11-09, Knuplesch, Juergen wrote: > when I run a task with > fork="yes" > under LINUX the test does not even start: LINUX is a pretty broad term here. Which version of java are you using? I use Ant on Linux using OpenJDK or Sun's Java without any problems.

AW: Cancelling Ant Build in mid-flight?

2011-11-20 Thread Knuplesch, Juergen
Hello, Best hint: Maybe you had a few programs in Eclipse started. To really stop your Ant Task you have to make sure, that you stop the correct console. I use Eclipse Indigo (3.7) and before I used 3.6 and 3.5. I use it every day and I cannot remember to see such an effect. But anyway stopping

AW: fork, JUnit and Linux

2011-12-09 Thread Knuplesch, Juergen
Hello, I just use a workaround (not to fork): I made fork a configurable property. Under Linux I set the property to false or no. Then the tests are correctly executed. But I would be happy to find the real solution. At least I'm not alone anymore... Jürgen -Ursprüngliche Nachricht- V

derby Classpath issue

2012-01-19 Thread Knuplesch, Juergen
Hello, I was creating an ANT-task that is using derby.jar as jdbc driver. I put derby.jar in the front of the classpath of my task. But every time I tried to reload sth. into my derby database it failed: sth. like "JDBC driver not found" Yesterday I found a workaround for my problem: I

AW: Fail build when 'replace' task cannot find expected number oftokens

2008-02-05 Thread Knuplesch, Juergen
Addition: You could also use the Task togeteher with And of course use the fail-Task to make the Build fail -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart

AW: Fail build when 'replace' task cannot find expected number oftokens

2008-02-05 Thread Knuplesch, Juergen
Maybe you could copy the file without changing of the timestamp (attribute preservelastmodified). Then do the replace on your file. Then test via if a change happened. Delete the copy This will only work, if replace does not change the timestamp, in case of no changes. Just an idea... -- Jür

AW: task won't run in cruise control but runs from windows command prompt...

2008-02-05 Thread Knuplesch, Juergen
You should echo the property "folder-exists" in both targets. Maybe the property is already set when you reach the first task. ANT will never unset it. CC runs a loop. Find out in what situations the errer happens. Is it the first call by CC or the second. -- Jürgen Knuplesch

AW: Substituting the value according to the property name

2008-02-05 Thread Knuplesch, Juergen
Use propertycopy or similar Task with regex from antcontrib -- 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 S

Ant and Junit

2008-02-06 Thread Knuplesch, Juergen
How do I run in Ant 1.6.5 a Junite-Tests that are stored in a classfile that contains the .class-files of the tests. uses a fileset, but how do I put the content of a jarfile to Junit? If I do it in a Batchfile it is no problem. Example this does not work (The jarfile is part of the junit.class

Maillogger Mail missing

2008-02-11 Thread Knuplesch, Juergen
Hello, In our network I use a lot of Ant-Files. I use the Maillogger and the mail-Task. On one machine the mail task is working fine, but the Mailogger Mail is missing. If I use this Antfile on a different machine, the maillogger Mail is working fine. A few weeks ago it even worked fine on that

AW: Junit report giving out of memory error

2008-02-11 Thread Knuplesch, Juergen
I had similar problems. I suggest tghe following: 1. has a maxmemory attribute. I use 1024. I use forking. 2. Split the tests via include and exclude. I parted our tests into three parts. 3. Be sure that your memory option will not be overwritten by a later called Batchfile 4. Increase the memor

Pdf-File and replace

2008-04-21 Thread Knuplesch, Juergen
Hello, When I change a binary file with the replace-Task, the file is in a wrong format. If I do the change with a Editor the file is correct. The replaced pattern is found only once in the document. What is the difference between replace and doing the sam with an Editor? Greetings -- Jürg

AW: Running the

2008-05-14 Thread Knuplesch, Juergen
What system you us? Linux, Windows??? Is wgwt a batchfile or a executable file? The Ant manual says: Note that .bat files cannot in general by executed directly. One normally needs to execute the command shell executable cmd using the /c switch. I discourage the us

AW: ANT manual/ppt/pdf

2008-05-14 Thread Knuplesch, Juergen
I use the online doku (http://ant.apache.org/manual/) (you can download the doku) and Steve Loughran / Erik Hatchers book. -- Jürgen -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 14. Mai 2008 15:17 An: user@ant.apache.org Betreff: ANT m

AW: how to change the property value at run time

2008-05-14 Thread Knuplesch, Juergen
Thats just the special thing about ANT-properties: You can not change them, for good reasons. But JAVA_HOME does not look like an Ant-property. What do you want to do? -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstra

AW: Defining ant target to run junit tests using dbunit

2008-05-20 Thread Knuplesch, Juergen
If I read this http://www.dbunit.org/anttask.html right, than you have to use operation, export or compare. I use JUNIT but not dbunit. I guess somewhere you have to tell the task, what test you are running. -- Jürgen Von: tmni [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. Mai 2008 17

AW: Checking for build.properties and properties upon initialization

2008-05-21 Thread Knuplesch, Juergen
Use the task from antcontrib, which makes things easier. -- 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 Se

AW: Calling a cmd batch file from Ant

2008-05-28 Thread Knuplesch, Juergen
If you use Task or you can run the target with different content of a property. E.g. I even use this in loops made with antcontrb. -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbH

AW: Calling a cmd batch file from Ant

2008-05-28 Thread Knuplesch, Juergen
y 28, 2008 at 11:03 AM, Knuplesch, Juergen < [EMAIL PROTECTED]> wrote: > But if you use or it is like you would start ANT a > second time. Therfore the properties are set in the target or script > that you call. The old values are lost if you use the attribute > Inheritall=f

AW: Calling a cmd batch file from Ant

2008-05-28 Thread Knuplesch, Juergen
uring one > > execution of the build script. > > > > On this basis, the controlling ant script, build.xml cannot have the > > component variable defined within it, even nested, as it potentially > > needs to be redefined multiple times. > > > > The component.x

AW: script problem

2008-05-28 Thread Knuplesch, Juergen
Do you have bsf.jar in the ANT-classpath? (You can copy it in the lib-Folder of ANT) See "Ant-Tasks"-"Library dependencies" in http://ant.apache.org/manual/ -- Jürgen Knuplesch Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -Ursprüngliche Nachric

Current dir of ant-Build / Java-Task

2008-06-06 Thread Knuplesch, Juergen
Hello, I want to start an application using the java-Task. My application writes files relative to the path I start it from. The application is starting fine and writing files relative to the path of my Batchfile, that starts the buildfile. How can I set the working dir for my java-task, so th

AW: Current dir of ant-Build / Java-Task

2008-06-09 Thread Knuplesch, Juergen
Thanks. I could not see it -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Dominique Devienne [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. Juni 2008 17:55 An: Ant Users List Betreff: Re: Current dir of ant-Build / Java-Task > Or do I have to change the working dir of my buil

AW: unable to execute JAR file

2008-06-18 Thread Knuplesch, Juergen
Use classname attribut instead of MANIFEST: -- Jürgen Knuplesch Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. Juni 2008 09:26 An: user@ant.apache.org Betreff: unable to execute JAR file Hi All, I have 10 java file

How to pass an unset property with inheritall=false

2008-07-16 Thread Knuplesch, Juergen
Hello, I want to use antcall together with inheritall=false: There are some targets that dont run, when paramsometimesunset is unset. If I pass the parameter like this and paramsometimesunset is unset, it is set in the called target. But I want it to be just the same value (

AW: How to run an ant target on success/failed build

2008-07-22 Thread Knuplesch, Juergen
You can do this by configuring the maillogger in your startscript: ant build_ant.xml -logger org.apache.tools.ant.listener.MailLogger Then you have to set the following properties MailLogger.mailhost= MailLogger.from= MailLogger.failure.subject=failed MailLogger.success.subject=successfull [EMAI

AW: Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread Knuplesch, Juergen
To retrieve changed properties you can use antcallback or antfetch from antcontrib. http://ant-contrib.sourceforge.net/tasks/tasks/index.html -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40

AW: variables or a counter ?

2008-08-19 Thread Knuplesch, Juergen
Antcontrib has a Math Task to add and variables that can change their value. It also has a for task. http://ant-contrib.sourceforge.net/tasks/tasks/index.html -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Ivar Bratberg [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 19. August 200

AW: ant global properies (variable)

2008-08-28 Thread Knuplesch, Juergen
Am I right, that you use foreach from Antcontrib? I guess that foreach does a usual ant task. This task never returns any properties to the caller. It works only in one direction. You could use the antcontrib for-Task combined with the antcontrib AntFetch Task. In AntFetch (and antcallback) you

AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
You need junit.jar somewhere -- Jürgen Knuplesch Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -Ursprüngliche Nachricht- Von: JOMO00 [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 28. August 2008 09:06 An: user@ant.apache.org Betreff: Re: java.lang.Cl

AW: java.lang.ClassNotFoundException" when running junit task

2008-08-28 Thread Knuplesch, Juergen
Hello, Obviously you do not have the Testclass BaseServiceCommunicationManagerTest in the classpath. You do not do anything elementary wrong. It is "just" a classpath-problem. (Missing jars, wrong written classes esp. Upper / lowercase) This happens a lot and sometimes you loose your faith in I

AW: How to wait for completion of execution of batch file ?

2008-09-01 Thread Knuplesch, Juergen
Isn't that the default behaviour of the exec task? How do you start your Batchfile? -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-29

AW: AW: How to wait for completion of execution of batch file ?

2008-09-02 Thread Knuplesch, Juergen
machines get rebooted. For that I feel I need to make ANT execution wait for that batch file execution to get complete. Any idea that apart from using some kind of time out what else I can do to achieve that. -Sactiw Knuplesch, Juergen wrote: > > Isn't that the default behaviour

AW: Setting classpath for nested ant call

2008-09-07 Thread Knuplesch, Juergen
Hello, What fails? A task or the whole ant? You can set the classpath in the tasks you call. -- Jürgen Knuplesch Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -Ursprüngliche Nachricht- Von: merlin_the_happy_pig [mailto:[EMAIL PROTECTED] Gesendet: Freita

AW: conditional exclude

2008-09-07 Thread Knuplesch, Juergen
You could use the task from antcontrib and use two copy tasks depending on your property. -- Jürgen Knuplesch Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -Ursprüngliche Nachricht- Von: heights08 [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 6. September

AW: Custom element for jar task.

2008-09-10 Thread Knuplesch, Juergen
Hello, The error you get tells simply, that your created task is not an allowed subelement of the jar-task. You run into a syntax error. It is not possible to change the jar task (or any other task) by adding your own tasks as subelements. Probably you have to write your own jar-task, that wi

AW: AW: Setting classpath for nested ant call

2008-09-10 Thread Knuplesch, Juergen
classpath in the ant call of the calling build.xml, but can't seem to get this to work? Knuplesch, Juergen wrote: > > Hello, > > What fails? > A task or the whole ant? > > You can set the classpath in the tasks you call. > > > > -- > Jürgen Knuplesch

How to use zipped Junittestclasses

2008-10-16 Thread Knuplesch, Juergen
Hello, I want to run Junittests that are stored as classfiles in a jar file. Is it possible with Ant 1.6.5 or Ant 1.7 to use the junit-task without unjar the testfiles? I want do do sth like this:

AW: ****SPAM**** Build in multiple java versions using Ant

2008-10-20 Thread Knuplesch, Juergen
You have to add a property to design the compiler compliance to 1.4, 1.5 or 1.6. Read the manual, to find out the name of the parameters!! There are at least two ways to do this: 1.Many tasks have a fork option, where you can tell the JVM you want to use to do this task 2.You simply could sta

AW: How to access the basedir of ANOTHER project in Eclipse?

2008-10-29 Thread Knuplesch, Juergen
What do you want to do with that? Maybe it is easier to help, if we understand whar you want to achieve. I use ant4eclipse which is a big help for me. -- Jürgen -Ursprüngliche Nachricht- Von: Ben Stover [mailto:[EMAIL PROTECTED] Gesendet: Montag, 27. Oktober 2008 23:27 An: user@ant.

AW: clearer output for junit task

2008-10-30 Thread Knuplesch, Juergen
1.If you use the task junit-report, it will create HTML, tells all about which test had an error or a failure and on the page of each Test there is a link to stdout and stderr. I guess this is what you want??? 2.When I use the junit-task Í get the following output on my console: [junit] Testsui

AW: param hierarchy inverse to property hierarchy

2008-11-12 Thread Knuplesch, Juergen
Hello, Again: The behaviour of ANT is ok, because you need this very often! If you have no access at all to ant1.xml and this script is holy, so that no one is allowed to change it and you need to call target t1, then there is no way to change foo for target t2. But... You import ant1.xml, the

AW: param hierarchy inverse to property hierarchy

2008-11-12 Thread Knuplesch, Juergen
In my opinion, ANT is doing exactly what ANT should do. The param attribute is used to overwrite selected properties in the called target. Param is not a datatype like properties. Param is just used to set properties for a called task. So, when you use antcall with param, it should always set t

AW: Setting a global property in a target. Possible?

2008-11-17 Thread Knuplesch, Juergen
You are right: Properties are immutable! Your problem seems to be a different one: If you do not run the target, the property wont be set. Make sure you set the property in a task that is called before you use it elsewhere. -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Al

AW: Running a remote process in background

2008-11-18 Thread Knuplesch, Juergen
Hello, So what is happening instead? Is ANT waiting for the server to stop? Is the server starting? Did you try it with a more somple command to start on the remote machine? (sth. Like "cat") I used these days the exec-command on a Windows machine and it works fine now. I use it to start

AW: how to make replace task not expand Java properties like ${user.home}

2008-11-18 Thread Knuplesch, Juergen
Never did this, but I would try sth like: -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. November 2008 05:43 An: user@ant.apache.org Betreff: how to make replace task not expand Java properties like ${user.home}

AW: Upgrade from 1.6.5 to 1.7.1

2008-11-20 Thread Knuplesch, Juergen
Hi, I upgraded from 1.6.5 to 1.7.1 a few weeks ago. Everything is working fine. I use antcontrib and ant4eclipse a lot. No problems so far. I had to upgrade because zipfileset is supported for the junit-task in 1.7.1 but not in 1.6.5 and I had to run tests out of a jar-file. Hope this helps a

AW: ****SPAM**** how to use ?

2008-11-26 Thread Knuplesch, Juergen
Who creates this dir? Who knows the name? The best way is to pass the information on to your antfile. -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: ndario [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 26. November 2008 15:54 An: user@ant.apache.org Betreff: ***

AW: Feature requests: include ant-contrib, unordered file sets, "cp"-like copy task

2008-12-02 Thread Knuplesch, Juergen
Hello, 1.I use antcontrib also a lot! I agree, that it would be nice to add this to ANT. 2.You want ordered filesets not unordered filsets, but it should be the user who defines the order! I sometimes had the same problem. The problem is, that filsets do not guarantee any order. I think file

AW: How can I figure out what JUnit test case is failing?

2008-12-03 Thread Knuplesch, Juergen
Use the to get the results in HTML. -- 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 Seltmann HRB Stuttgart 1

AW: How can I figure out what JUnit test case is failing?

2008-12-03 Thread Knuplesch, Juergen
So what do you want to do? 1.Run a junittest under Eclipse? (There is a good Junit plugin for Eclipse: Use it!) 2.Run a junit-test under ANT? (e.g. run a bunch of tests in batchmode): Use -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto

AW: AW: How can I figure out what JUnit test case is failing?

2008-12-04 Thread Knuplesch, Juergen
hat is the only possible solution. - Dave > ---Original Message--- > From: Knuplesch, Juergen <[EMAIL PROTECTED]> > Subject: AW: How can I figure out what JUnit test case is failing? > Sent: Dec 04 '08 06:51 > > So what do you want to do? > >

AW: ****SPAM**** Re: Generating Hyperlink with Ant

2008-12-08 Thread Knuplesch, Juergen
Better have two ways to start your Tests: 1.as Batch Ant 2.using the Eclipse JUNIT plugin without ANT -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Zmaj [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 7. Dezember 2008 23:25 An: user@ant.apache.org Betreff: SPA

AW: ****SPAM**** How include arbitrary jars on javac classpath?

2009-01-19 Thread Knuplesch, Juergen
Hello, What happens under Windows? The syntax should be the same. What errors come up? What do you want to do with the fileset?? If you use The property fname has the full path. -- Jürgen Knuplesch Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811

AW: setup environment for java task

2009-02-13 Thread Knuplesch, Juergen
Hello, I would translate the "bat" files to ANT-Tasks. This is a lot of work, but than your Antfile can decide what bat-jobs you run and when. Another way is to run the bat-files itself inside Ant using the exec-task, which is a bit tricky to handle. To be honest: I dont like Batchfiles, so I

AW: setup environment for java task

2009-02-13 Thread Knuplesch, Juergen
ts the process spawned by the exec task and is not remembered from one batch file to the next so when I finally launch my java class, that environment from the batch files is already gone, I think --- Shawn Castrianni -Original Message- From: Knuplesch, Juergen [mailto:juergen.knuple...@ic

xslt Task

2009-03-09 Thread Knuplesch, Juergen
Hello, we want to intergrate a xsl-Transformation into our Buildprocess. The XSLT runs fine together with Saxon processor. Inside Ant it does not run. Why cant Ants XSLT not understnad this XSLT? What is a good solution? Integrate saxon into Ant? How? Greetings Juergen -- Jürgen Knuplesch

AW: xslt Task

2009-03-09 Thread Knuplesch, Juergen
An: Ant Users List Betreff: Re: xslt Task Le lundi 09 mars 2009, Knuplesch, Juergen a écrit : > Hello, > > we want to intergrate a xsl-Transformation into our Buildprocess. The XSLT runs fine together with Saxon processor. Inside Ant it does not run. > > Why cant Ants XSLT not

AW: Developing in Java with ANT

2009-03-17 Thread Knuplesch, Juergen
Hello, If you read the ant.bat file you see "%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS% Therefore "org.apache.tools.ant.launch.Launcher" out of "ant-launcher.j

AW: ****SPAM**** Adding specific jar to classpath

2009-03-23 Thread Knuplesch, Juergen
Hello What do you want to do with this jar? Add it to Ant or use it to javac sth. Or else? To integrate a jar on the classpath of Ant it is enough to put the jar in the lib dir of Ant. Greetings -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: eyalg1972 [mailto:

AW: ****SPAM**** Re: AW: ****SPAM**** Adding specific jar to classpath

2009-03-24 Thread Knuplesch, Juergen
ant commands, is it possible? Eyal Knuplesch, Juergen wrote: > > Hello > > What do you want to do with this jar? > Add it to Ant or use it to javac sth. Or else? > > To integrate a jar on the classpath of Ant it is enough to put the jar > in the lib dir o

AW: ****SPAM**** Re: AW: ****SPAM**** Re: AW: ****SPAM**** Adding specific jar to classpath

2009-03-24 Thread Knuplesch, Juergen
classpath Hi, The problem is that I want to add to the classpath it a jar, not replace it... Eyal Knuplesch, Juergen wrote: > > Hi, > > > Of course. > The javac task has a nested classspath element and classpath attribute > and you can add a classpath reference... > Read

Xslt troubles

2009-03-25 Thread Knuplesch, Juergen
Hello, I am using Saxon to run a special XSLT. This XSLT has run well using saxon9.jar. Now it had to be changed and now I get the following error: [xslt] Processing D:\Temp\xsltPRL\install.dsf to D:\Temp\xsltPRL\Ergebnis.html [xslt] Loading stylesheet D:\Entwicklung\Build\DopeBuildSe

AW: Xslt troubles

2009-03-25 Thread Knuplesch, Juergen
like a bug in the stylesheet than like an ant issue. Have you tried to run the stylesheet in a debugger or from the command line? Stefan Krause Knuplesch, Juergen schrieb: > Hello, > > I am using Saxon to run a special XSLT. > This XSLT has run well using saxon9.jar. > Now it had to

AW: ****SPAM**** Class-Path error in Ant Script

2009-03-30 Thread Knuplesch, Juergen
You need log4j.jar in the compile-classpath -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: NR031 [mailto:nataraja...@cognizant.com] Gesendet: Montag, 30. März 2009 12:02 An: user@ant.apache.org Betreff: SPAM Class-Path error in Ant Script Hi, I am

AW: How to get substring of a property

2009-03-31 Thread Knuplesch, Juergen
I use propertyregex from antcontrib: Property vm.propertyname=${vm.propertyname} -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Document [mailto:ddocum...@gmail.com] Gesendet: Dienstag, 31. März 2009 00:46 An: user@ant.apache.org Betreff: How to get substring

AW: jar task: update and service

2009-04-03 Thread Knuplesch, Juergen
Please post an example of what you do -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Kúti Zsolt [mailto:kuti.zs...@prolan.hu] Gesendet: Freitag, 3. April 2009 15:18 An: user@ant.apache.org Betreff: jar task: update and service Hi, Accomplishing a jar task, I want to update my j

AW: Getting substring in ANT

2009-04-06 Thread Knuplesch, Juergen
As I wrote last week in a different context: I use propertyregex from antcontrib: Property vm.propertyname=${vm.propertyname} -- Jürgen Knuplesch -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophiens

Strange JUNIT Error inside Ant

2009-05-05 Thread Knuplesch, Juergen
Hello, We run a bunch of Junit Tests using ANT. A special test runs fine, when started separetly (using ANT) or is run in Eclipse. But, when we start all Tests the following error occurs: [junit] Testsuite: functional.processlogic.SerialLetterTest [junit] Test functional.processlogic.S

Pack200 and Ant jartask

2009-05-06 Thread Knuplesch, Juergen
Hello, I want to pack an applet with pack200 to reduce the size of the Applet. I downloaded a pack200 ANT task I go with my AntSkript through the strange process of building such a jarfile: 1.Building the unsigned jarfile using the jartask of ANT 2.repack it with pack200 3.sign the jar 4.pack it

AW: Generate XML

2009-05-11 Thread Knuplesch, Juergen
Why not use XSLT to create XML out of XML? Or you put some placeholders into your XML and use the replace task... -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: raghu guru [mailto:raghure...@gmail.com] Gesendet: Montag, 11. Mai 2009 20:30 An: user@ant.apache.org Betreff: Generat

Sending small mail when build is finished

2009-05-18 Thread Knuplesch, Juergen
Hello, My challenge is: I dont want to use the maillogger anymore, because our logs have become very large. So I started to use -logfile and store it with my Buildresults. But on the other hand: I want to send a small mail, that tells me whether the build was ok or not. How can I do this? Gree

Applying Ant Source to Eclipse project

2009-05-19 Thread Knuplesch, Juergen
Hello, I want to install the Ant Source into a Eclipse project. I downloaded the source, but it does not easily fit into the Eclipse environment. Is there an online help how to do this? Does anyone have some hints, so that the adaption will be made easier? Greetings Juergen -- Jürgen Knuples

Final Target

2009-05-25 Thread Knuplesch, Juergen
Hello, I just implemented a logger that runs a final Target. In this target I save the logfile to a buildresult location in our network. 1.Is there an other way to do this (The logger knows, when the build is finished, and so he can run the final target) 2.If no, is this an interesting feature f

AW: ant-contrib with Java 1.4?

2009-05-26 Thread Knuplesch, Juergen
Hello, This doesnt look like a Java problem. This seems to be a classpath problem. The error says, that the whole antcontrib.jar could not be found. Antlib.xml is inside the antcontrib.jar and defines the tasks of antcontrib. The antcontrib.jar is probably not on the classpath of the Ant you are

AW: clone fake environment variables as real ones for exec

2009-05-28 Thread Knuplesch, Juergen
Hello, One way this could work is by wrting your own exec2 task by using the source and add an argument of your choice that does the trick (an extension of the env argument). Probably a script (python, etc.) language is also able to set environment variables. So you could use the script task

Debugging my AntTasks

2009-05-28 Thread Knuplesch, Juergen
Hello, My selfwritten Ant Task is running into an exception. BUILD FAILED build_ant.xml:2315: The following error occurred while executing this line: build_ant.xml:5428: java.lang.IllegalArgumentException: interface com.intland.codebeamer.remoting.RemoteApi is not visible from class loader I wo

Taskdef classpath does nor work

2009-05-28 Thread Knuplesch, Juergen
Hello, I do a taskdef with 1.7.1 like: When I display the classpath referenced in java.classpathid I see a certain jar. When I run the task it fails, because it can not find a class that is based in that certain jar. When I add the jar in the classpath of Ant it works. This is strange,

AW: Taskdef classpath does nor work

2009-05-28 Thread Knuplesch, Juergen
Users List Betreff: Re: Taskdef classpath does nor work Is there some supplementary class that that class requires that isn't there when you use it as you have it defined? On Thu, 28 May 2009, Knuplesch, Juergen wrote: > Hello, > > I do a taskdef with 1.7.1 like: > > cl

AW: Taskdef classpath does not work - partII

2009-05-28 Thread Knuplesch, Juergen
Nachricht- Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Gesendet: Donnerstag, 28. Mai 2009 16:50 An: Ant Users List Betreff: Taskdef classpath does nor work Hello, I do a taskdef with 1.7.1 like: When I display the classpath referenced in java.classpathid I see a

AW: AW: Taskdef classpath does not work - partII

2009-05-28 Thread Knuplesch, Juergen
[mailto:sflo...@nc.rr.com] Gesendet: Donnerstag, 28. Mai 2009 18:40 An: Ant Users List Betreff: Re: AW: Taskdef classpath does not work - partII So, how do you construct your class path? Also, what is the exception? On Thu, 28 May 2009, Knuplesch, Juergen wrote: > Hello, > > I

Taskdef classpath still does not work - partIII

2009-05-29 Thread Knuplesch, Juergen
how I can debug deeper what happens? Greetings Jürgen -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Gesendet: Donnerstag, 28. Mai 2009 18:54 An: Ant Users List Betreff: AW: AW: Taskdef classpath does not work - partII

AW: Taskdef classpath still does not work - partIII

2009-05-29 Thread Knuplesch, Juergen
conCodebeamerCVS\lib\cb-api.jar) to Ant it > works. > > This is crazy. Im working now a whole day on this topic and can not find a > reason. > > Has anyone an idea, whats going on or how I can debug deeper what happens? > > Greetings > > Jürgen > > -- &

Taskdef classloader issue

2009-05-29 Thread Knuplesch, Juergen
17655 USt-IdNr.: DE 811944121 -Ursprüngliche Nachricht- Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Gesendet: Freitag, 29. Mai 2009 16:02 An: Ant Users List Betreff: AW: Taskdef classpath still does not work - partIII Hello, Thanks for the suggestion, but sadly it did

AW: Taskdef classloader issue

2009-06-02 Thread Knuplesch, Juergen
; > Greetings Juergen > > > -- > Jürgen Knupleschwww.icongmbh.de > icon Systemhaus GmbHTel. +49 711 806098-275 > Sophienstraße 40 > D-70178 Stuttgart Fax. +49 711 806098-299 > > Geschä

Delete file inside a warfile

2009-06-03 Thread Knuplesch, Juergen
Hello, Is it possible to delete a single file inside a warfile in one step? (I want to remove a certain library) Greetings Jürgen - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h

AW: Delete file inside a warfile

2009-06-03 Thread Knuplesch, Juergen
Hello, Not really, because I already have a warfile and want to throw out one jar. I solved it now in two steps 1.copying the warfile 2.war the new warfile out of the copy and exclude the specific jar, similar to what you mailed. It would be nice just to delete sth. Out of a jar/war etc. with

AW: ant-contrib: ispropertytrue

2009-06-04 Thread Knuplesch, Juergen
Hello, Just a guess: In the link you gave the code is: Your code is: Is this a lowercase problem? Greetings Juergen -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: David Weintraub [mailto:qazw...@gmail.com] Gesendet: Mittwoch, 3. Juni 2009 19:46 An: Ant Users List Betreff: Re:

AW: Taskdef classloader issue: Solution found

2009-06-04 Thread Knuplesch, Juergen
der(); So for certain tasks it is necessary to use the original classloader, that loaded the task. The code above replaces the classloader and the problem is solved! Greetings Juergen -- Jürgen Knuplesch -----Ursprüngliche Nachricht- Von: Knuplesch, Juergen [mailto:juergen.knuple...@ico

AW: How to concat string in ant

2009-06-04 Thread Knuplesch, Juergen
Hello, You use antcontrib, there you have the var type that will do the trick. In the end you should move the result into a property. Initialize it: And in the loop: And move it to property: -- Jürgen Knuplesch -Ursprüngliche Nachricht---

AW: Abort build with successful status

2009-06-15 Thread Knuplesch, Juergen
Hello, I would use from antcontrib to achieve this. Sth.like -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] Gesendet: Montag, 15. Juni 2009 07:18 An: 'user@ant.apache.org' Betreff: Abort build with successful st

AW: ****SPAM**** cannot find symbol

2009-06-15 Thread Knuplesch, Juergen
Obviously you dont have some necessary jar files on your compile classpath. package org.eclipse.swt.widgets You probably have this files on your Eclipse classpath / buildpath. You have to add allof them to your compile classpath (see reference of javac task) If you use Eclipse: You could also u

AW: How to distinguish build/clean and build within ant task

2009-06-26 Thread Knuplesch, Juergen
Hello Artur, You can achieve this with properties:                                                                         In your different maintasks (or property file) you do or or -- Greetings from good old Germany Jürgen -Ursprüngliche Nachricht- Von: Artur Rataj [ma

AW: ****SPAM**** for task inside path task

2009-07-09 Thread Knuplesch, Juergen
Hello, Maybe ANT this way: -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: kleinfisch [mailto:kleinfi...@gmx.net] Gesendet: Donnerstag, 9. Juli 2009 09:44 An: user@ant.apache.org Betreff: SPAM fo

  1   2   >