AW: [ANNOUNCE] Apache Ivy 2.5.0 released

2019-10-26 Thread jhm
That's not a thing we don't want to do. But we are lacking the knowledge of building Eclipse plugins on actual Eclipse versions. So don't expect that to come in the near future. But that's only my personal view Jan > -Ursprüngliche Nachricht- > Von: JOSE LUIS MARTINEZ-AVIAL GONZALEZ-CEL

AW: Replacing value in an XML file using replaceregexp

2019-10-19 Thread jhm
Simple solution Another possibility is using a template file and . The simple solution is based on your "requirement" > Replace: > 12467abc => 34567abc > 12467def => 34567def > 12467xyz => 34567xyz For heavy xml modifications you could use th

AW: After the command is executed, the ant window opens with an error of 255

2019-10-04 Thread jhm
Try the outputproperty or errorproperty of the exec task. Maybe this is related to you https://ubuntuforums.org/showthread.php?t=1464940 I don't know mate-terminal. But you can't use itself? Jan > -Ursprüngliche Nachricht- > Von: Игорь Бобров [mailto:ne...@yandex.ru] > Gesendet: Monta

AW: Issue with sql task accessing MySql

2019-08-31 Thread jhm
Just for beautifying the log: you could specify a 'taskname' So you get a [update-db-tables] ... instead of [exec] ... Jan > -Ursprüngliche Nachricht- > Von: Eric Fetzer [mailto:elstonk...@yahoo.com.INVALID] > Gesendet: Donnerstag, 29. August 2019 16:04 > An: user@ant.apache.or

AW: Skipping a javah task with Java 10 and higher

2019-05-07 Thread jhm
Betreff: Re: Skipping a javah task with Java 10 and higher > > Thanks much for your help! The javaversion condition works perfectly. > > > Rei Odaira > > 2019年5月7日(火) 0:58 Jan Matèrne (jhm) : > > > With xml namespaces like if:set you could exclude individu

AW: Skipping a javah task with Java 10 and higher

2019-05-06 Thread jhm
With xml namespaces like if:set you could exclude individual tasks. http://ant.apache.org/manual/ifunless.html ... Jan > -Ursprüngliche Nachricht- > Von: Jaikiran Pai [mailto:jaiki...@apache.org] > Gesendet: Dienstag,

AW: overriding built-in tasks (not targets)

2019-04-15 Thread jhm
I am not sure if you could check the response headers. The manual shows an example how to add a MD5 checksum test after a download (macro "get-and-checksum"). Maybe the best way is to implement your own download in Java (reusing Get's sourcecode, or use a http lib). Or I haven't got your poin

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-28 Thread jhm
On 2/20/2019 3:22 PM, Jan Matèrne (jhm) wrote: If you have created you

AW: Creating task/macro wrappers

2019-02-25 Thread jhm
> > > > > > > > > > > > > > > > > > ... > > > > > timeout="@{timeout}"/> > > > > > > The first one fails because the reference is defined after > > > , and the second one doesn&

AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread jhm
https://search.maven.org/remotecontent?filepath=org/apache/logging/log4j/log4j-api/2.11.2/log4j-api-2.11.2.jar"; dest="${lib.dir}/log4j-api-2.11.2.jar" /> 8-<--8-<--8-<--8-<--8-<-- > -Ursp

AW: Creating task/macro wrappers

2019-02-25 Thread jhm
Not sure why you want to wrap an existing Ant task ... If you want to provide default settings, you could use Jan > -Ursprüngliche Nachricht- > Von: Isaac Jurado [mailto:dipto...@gmail.com] > Gesendet: Sonntag, 24. Februar 2019 18:27 > An: Ant Users List; gudnabr...@gmail.com > Betreff:

AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread jhm
/2019 3:22 PM, Jan Matèrne (jhm) wrote: If you have created your JAR the first step is done. Starting the JAR could be done in several ways. Common is that you have to have all external classes o

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-20 Thread jhm
If you have created your JAR the first step is done. Starting the JAR could be done in several ways. Common is that you have to have all external classes on the runtime classpath: 1. Hard coded start script. Write a bash/bat-Script with the java command with all cp settings, e.g. (bat) @ech

AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread jhm
eff: Re: AW: Javac Run By Ant Script is Unable to Find External > Jars > > Hi Jan, > > Thanks. Things are starting to come together in my head. If I > understand, ant doesn't need the Eclipse .classpath at all and only the > classpath suggested by Matt is used by ant, right?

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread jhm
Matt is correct: you are mixing Eclipse and Ant definitions. So here some points by me: * There is no default behaviour of . You have to specify the paths the compiler should use by yourself. * means, that the file or directory ".classpath" should be used for classpath. But the .classpath-file i

AW: jsch to apache mina for sshexec - Ant version 1.9.6 to 1.10.1

2019-01-11 Thread jhm
> We use ant internally in our build systems and heavily use sshexec/scp > and ssh tasks. These rely on jsch which is an external library. Now > that there is Apache Mina is there a way to move away from jsch to > apache mina? Jsch project is not very active, so we were looking for an > alternative

AW: [E] Javac: Command-Line Argument Files

2018-08-05 Thread jhm
Could you post your buildfile snippet and the build output? Jan > -Ursprüngliche Nachricht- > Von: Jose M Urena [mailto:jose.ur...@verizon.com] > Gesendet: Freitag, 3. August 2018 15:02 > An: Ant Users List > Betreff: Re: [E] Javac: Command-Line Argument Files > > the following suggestio

AW: deleting files not in whitelist

2018-07-18 Thread jhm
Sorry for not having the right time to digg into your solution. Two workaround come into my mind: 1. Copy your whitelisted files into a tmp directory, delete the whole src directory and copy the whitelisted files back 2. Use to convert your whitelist to an excludes-clause and use Jan

AW: ant version is not showing correctly

2018-04-19 Thread jhm
You should also check your $ANT_OPTS and remove the -XMaxPermSize=512m. The output sais, that Java8 does not support that anymore and so you'll get rid off this message. Jan > -Ursprüngliche Nachricht- > Von: govind nitk [mailto:govind.n...@gmail.com] > Gesendet: Mittwoch, 18. April 2018

AW: Stable link to apache-ant-*-bin.tar.xz?

2018-02-08 Thread jhm
There are two main pages for releases: * https://www.apache.org/dist/: actual releases * http://archive.apache.org/dist/: all releases The release policy [1] of the ASF enforces to have only the newest versions on the first. This is the primary directory for mirrors. Usually users are interested i

[SECURITY] CVE-2017-5645: Apache Ant 1.9.9 and 1.10.1 - Apache Log4j 1.2.13 security vulnerability

2018-02-06 Thread jhm
CVE-2017-5645: Apache Ant 1.9.9 and 1.10.1 - Apache Log4j 1.2.13 security vulnerability Severity: low Vendor: The Apache Software Foundation Versions Affected: Apache Ant 1.9.0 - 1.9.9 Apache Ant 1.10.0 - 1.10.1 The unsupported Apache Ant 1.8 and lower versions are also affected. De

AW: "Local" Installation Location for Ant Extensions

2017-10-28 Thread jhm
You could specify the ivy.jar-location via -lib option. ant -lib path/to/ivy.jar myTarget Or you could specify it _in_ your buildfile, like in http://ant.apache.org/ivy/history/latest-milestone/samples/build.xml Jan > -Ursprüngliche Nachricht- > Von: Dawid Weiss [mailto:dawid.we..

AW: Task for "javapackager"?

2017-09-25 Thread jhm
Not sure, if this is the right one. Did you have a look at ant-javafx.jar? I have found that in JDK-1.8.0_77/lib and it contains an AntLib definition at com\sun\javafx\tools\ant\antlib.xml Jan >

AW: How to define a task with nested elements in Ant?

2017-06-05 Thread jhm
You could play that way: * use to transform that peace into a 'valid Ant buildfile' * use to call that generated file Jan > -Ursprüngliche Nachricht- > Von: Alexander Levin [mailto:a.le...@gmx.de] > Gesendet: Montag, 5. Juni 2017 01:39 > An: Ant Users List; Jan M

AW: How to define a task with nested elements in Ant?

2017-06-03 Thread jhm
I dont know any easy way. Simplest thing would be writing that kind in Java. And if you dont want to download that jar from your buildfile you could the jar creation inline: - generate the code () - compile () - archive that () - include that () Via

AW: macrodef with parameters to pass to java task

2017-05-29 Thread jhm
With that macro definition you also could use the other available nested elements: Jan > -Ursprüngliche Nachricht- > Von: Stefan Bodewig [mailto:bode...@apache.org] > Gesend

AW: How to specify a password parameter in Java task

2017-02-27 Thread jhm
You could try to use a custom logger which detects that password and masks it. Because Ant can't distinguish if an is 'just' an argument or a password, there is no built-in solution. Jan > -Ursprüngliche Nachricht- > Von: Stefan Bodewig [mailto:bode...@apache.org] > Gesendet: Samstag, 25

AW: New PropertyHelper to Easily Add Colors to Ant Output

2017-01-15 Thread jhm
nice Jan Von: j...@dogsplayingpoker.org [mailto:j...@dogsplayingpoker.org] Im Auftrag von Joe's Diner Webmaster Gesendet: Samstag, 14. Januar 2017 01:33 An: user@ant.apache.org Betreff: New PropertyHelper to Easily Add Colors to Ant Output Here is a little PropertyHelper I wrote that e

AW: How to capture HTTP response with the status 500?

2017-01-15 Thread jhm
I just had a look at the source code. There is a special handling for HTTP-ResponseCodes for - MOVED --> follow redirect if specified -- 301: Moved Permanently -- 302: Temporary Redirect -- 303: See Other -- 307: Temporary Redirect - HTTP_NOT_MODIFIED (304 Not Modified) --> dont download i

[ANN] Retirement of Ant subproject 'EasyAnt'

2017-01-05 Thread jhm
The Ant PMC voted [1] to archive the EasyAnt subproject and all its modules. This means that all its resources are removed or made read only and no further development will be done. It also means that, if a community grows, the subproject could reactivated [2]. Happy new year Jan Matèrne,

AW: Is there an existing ant script library available for use?

2016-12-17 Thread jhm
You could write one buildfile and copy it 100times. Or use : the "master" buildfile is available e.g. on a share. The 100+ projects only have a So they could set some individual values. Jan > -Ursprüngliche Nachricht- > Von: Scot P. Floess [mailto:sflo...@nc.rr.com] > Gesendet:

AW: AW: How to delete all files in a dirset

2016-10-20 Thread jhm
If I understand your requirements right, you want to delete recursively all directories which contain a marker file. So maybe you could use this (have a deeper look at the task). Jan

AW: How to delete all files in a dirset

2016-10-20 Thread jhm
Could you use a ? Jan > -Ursprüngliche Nachricht- > Von: Al Le [mailto:al...@gmx.de] > Gesendet: Donnerstag, 20. Oktober 2016 12:08 > An: user@ant.apache.org > Betreff: How to delete all files in a dirset > > Hello, > > I have a dirset defined in my script. How can I delete all files >

AW: How to create a task associated a target

2016-04-26 Thread jhm
Try task.setOwningTarget( self.getOwningTarget() ); 'self' is referencing the task and the new created instance will get its owning target. Jan > -Ursprüngliche Nachricht- > Von: Al Le [mailto:al...@gmx.de] > Gesendet: Di

AW: Passing command Line args for a list

2016-03-07 Thread jhm
Something like that? Jan ant -Dantcontrib.jar=path/to/ant-contrib-1.0b3.jar -Dagent.list="node1,node2" -Dnode1.description=ServerA -Dnode2.description=AnotherServer starting Agent @{agent}: @{description}

AW: How to get list of build files that will be executed for Ant build

2015-11-18 Thread jhm
hack > the build. > So if the build is already done, the ship might have already left the > shore :D > > I expected some task in ant to analyze the build files instead of > running build, which might give the enough information of my > requirement :-/ > > On Wed, Nov 18, 201

AW: How to get list of build files that will be executed for Ant build

2015-11-17 Thread jhm
Hacking is always ... surprising ;) as you use APIs in way they weren't intended for. But it makes fun :O I am not sure if you can get these information during runtime. But collecting during a build and analyzing afterwards could be possible using a custom BuildListener. With that you get all me

AW: Class size

2015-11-03 Thread jhm
class file. Jan > -Ursprüngliche Nachricht- > Von: Jan Matèrne (jhm) [mailto:apa...@materne.de] > Gesendet: Dienstag, 3. November 2015 17:36 > An: 'Ant Users List' > Betreff: AW: Class size > > Next idea is using different compile flags, e.g. debug. >

AW: Class size

2015-11-03 Thread jhm
K. > > On Tue, Nov 3, 2015 at 6:16 AM, Jan Matèrne (jhm) > wrote: > > > Are you sure that Maven and Ant are using the same JDK? > > > > Jan > > > > > -Ursprüngliche Nachricht- > > > Von: aalok singhvi [mailto:aaloksing...@gmail.com]

AW: Class size

2015-11-03 Thread jhm
Are you sure that Maven and Ant are using the same JDK? Jan > -Ursprüngliche Nachricht- > Von: aalok singhvi [mailto:aaloksing...@gmail.com] > Gesendet: Sonntag, 1. November 2015 22:34 > An: Maven Users List; Ant Users List > Betreff: Class size > > Hello, > I have a basic question... >

AW: What are the plans for Ant 2.0?

2015-09-07 Thread jhm
Yes this is the right list. We don't have a release plan - next release comes when we (the PMC) decide to release one. Could be 1-2 years after the last release (like 1.9.5), could be just few weeks (like 1.9.6) - depends of the changes. 2.0 would be a version with massive changes in the archi

AW: AW: build_tools.jar missing

2015-09-07 Thread jhm
The manifest task is available as and is part of the core Ant distribution. The definition is in org\apache\tools\ant\taskdefs\defaults.properties manifest=org.apache.tools.ant.taskdefs.ManifestTask That class is in ant.jar. Googling for "build_tools.jar" gave me just this hint: http://discour

AW: build_tools.jar missing

2015-09-07 Thread jhm
I dont know that task. Where does it come from? Jan > -Ursprüngliche Nachricht- > Von: Martin Gainty [mailto:mgai...@hotmail.com] > Gesendet: Montag, 7. September 2015 14:11 > An: us...@ant.apache.org; Ant Users List > Betreff: RE: build_tools.jar missing > > > > From: mgai...@hotmail.

AW: Question about my ant

2015-08-16 Thread jhm
You also could use the AntLib-Props. There is no official release, but you could use the CI-build. https://builds.apache.org/view/All/job/AntLib-props/lastSuccessfulBuild/artifact/distribution/binaries/ For usage you should have a look at the unit tests https://git-wip-us.apache.org/repos/asf?p=an

AW: tools.jar not found

2015-04-28 Thread jhm
vent.getMessage(); > >if (!msg.contains(IGNORE_MSG_PATTERN)) { > >super.messageLogged(event); > >} else { > >System.out.println("tools-message suppressed"); > >} > >} > > > > } > > &g

AW: tools.jar not found

2015-04-28 Thread jhm
} else { System.out.println("tools-message suppressed"); } } } > -Ursprüngliche Nachricht- > Von: Earl Hood [mailto:earlh...@gmail.com] > Gesendet: Dienstag, 28. April 2015 07:38 > An: Ant Users List > Betreff: Re: tools.jar not found >

AW: tools.jar not found

2015-04-27 Thread jhm
Ant is a build tool. For some tasks (for example javac, javadoc) the tools from the Java _Development_ Kit are required. If you run with just a Java _Runtime_ Environment most of its tasks could be used, but not all - hence the warning. Set your JAVA_HOME to the installation path of your JDK. htt

AW: How do I create a customized build?

2015-03-20 Thread jhm
I would provide several jars: - application-core.jar: contains the application and the interfaces - application-activemq.jar: contains the interface implementations for ActiveMQ - application-hornetq.jar ... The approach you'll try to achieve (as I understand that) is having a "full jar" for each

AW: Problems parsing @@

2014-12-04 Thread jhm
This unit test passes under Ant 1.9.5alpha and 1.9.4. Jan > -Ursprüngliche Nachricht- > Von: Ryan Payton [mailto:rpay...@tibco.com] > Gesendet: Freitag, 5. Dezember 2014 03:13 > An: user@ant.

AW: exception expanding war file

2014-10-25 Thread jhm
Have you tried to unzip the war manually using another program? Jan > -Ursprüngliche Nachricht- > Von: KM [mailto:info...@yahoo.com.INVALID] > Gesendet: Freitag, 24. Oktober 2014 17:17 > An: Himanshu Gusain; Ant Users List > Betreff: Re: exception expanding war file > > we've already che

AW: StarTeam Label Trouble with Ant

2014-07-01 Thread jhm
There is no star team support built in in Ant. So you have to install it for yourself via taskdef [1] or antlib [2]. StarTeam tasks are available in the Ant sandbox [3] (you have to build that from source) from sourceforge [4] and maybe from the manufacturer of star team. Searching for "starteam

AW: BuildFileRule

2014-06-14 Thread jhm
ant-core\src\tests\junit\org\apache\tools\ant\BuildFileRule.java This file 'should' be contained in the ant-testutil.jar. But because of a missing statement it was not, thanks for pointing. Next nightly should contain the compiled class https://builds.apache.org/view/A-D/view/Ant/job/Ant_Nightly

AW: Cannot find symbol (CertAndKeyGen) with JDK8

2014-05-20 Thread jhm
I could reproduce the problem. You are trying to refer to a private API, see http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html I could load the class via reflection (Class.forName) but not via direct reference. While searching I found some hints: https://svn.forgerock.org/opend

AW: executable="/usr/bin/cp" cannot access PATH/*

2014-04-25 Thread jhm
I wouldnt use a platform specific 'cp' command. Why dont you use ? Another point is that your '*' is not resolved by 'cp', this is resolved by the shell interpreter. Maybe this would work Jan > -Ursprüngliche Nachricht- > Von: GARCIA PER

AW: Maven Ant Plugin question

2014-03-27 Thread jhm
The problem is the usetimestamp="false" which disables the local check. And because its hard written in the (generated) code you can't "overwrite" that with a . I did a test with this buildfile: - usetimestamp=false: loads everytime all artifacts (just the mkdir will run once) - usetimestamp=true:

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

2014-02-25 Thread jhm
The fileset needs a project instance. getDS() is a short cut for getDS(getProject()) and your getProject() would return null. see: https://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/an t/types/AbstractFileSet.java supports nested filesets so a view here would be a starting

AW: Is it possible to get "location semantics" with

2013-12-11 Thread jhm
I would use several properties files and load the one needed for the current environment. Jan > -Ursprüngliche Nachricht- > Von: Cyril Sagan [mailto:cyril.sa...@gmail.com] > Gesendet: Donnerstag, 12. Dezember 2013 00:08 > An: Ant Users List > Betreff: Is it possible to get "location se

AW: AW: AW: problem with ftp

2013-11-30 Thread jhm
p.s.: Thanks Scot for your aid ;) Jan > -Ursprüngliche Nachricht- > Von: Jan Matèrne (jhm) [mailto:apa...@materne.de] > Gesendet: Samstag, 30. November 2013 10:52 > An: 'Ant Users List' > Betreff: AW: AW: AW: problem with ftp > > If someone comes with a pr

AW: AW: AW: problem with ftp

2013-11-30 Thread jhm
If someone comes with a problem and points to place where he think the sticking point is, I usually want to make my own picture. Maybe I see the same problem, maybe not. But there is a reason why someone stops at a certain point. And often enough I had seen that the real problem is "some lines b

AW: AW: problem with ftp

2013-11-28 Thread jhm
> and i specifically stated: > > > I have absolutely NO variables in my macrodef. I could see that. But the error message "Syntax error in property:" make me thought that something is wrong with properties. > "checkAntCommons" and "checkJakartaOro" check for the libraries that > are required f

AW: problem with ftp

2013-11-28 Thread jhm
My first thought is that you are setting a property with a strange name. Could you run with "-d"? Maybe the debug output gives more hints. While just reading the macrodef I couldnt find something suspect ... You are calling checkAntCommons and checkJakartaOro targets. I dont know what happens ther

AW: Ant get-m2.xml question

2013-11-12 Thread jhm
Why do you want to upgrade to 1.7.0 (19.12.2006) instead of 1.9.2 (12.07.2013)? If the 1.7.0 would contain an error it would not be fixed ... Jan > -Ursprüngliche Nachricht- > Von: Ed Mansky [mailto:man...@mindspring.com] > Gesendet: Dienstag, 12. November 2013 15:33 > An: user@ant.apache

AW: Apache ant 1.7.1 on Linux: Not able to recognize optional ant-junits.jar

2013-09-03 Thread jhm
My first thought was, that you are using a very old Ant version. http://ant.apache.org/faq.html#history : Ant 1.7.1: 27.06.2008 Ant 1.9.2: 12.07.2013 My second thought was, that your Ant installation might be corrupted ... Jan > -Ursprüngliche Nachricht- > Von: Ani [mailto:aniruddh

AW: Secure input handler

2013-08-30 Thread jhm
The problem is not in or in the used InputHandler. This log is produces on a completely other place. The InputHandler reads silently your passwort. The input task does not log the pwd, it just stores the value on the project instance. This storing is finally done by a PropertyHelper which then lo

AW: Annotations Stripping or Transformation at Build time

2013-08-24 Thread jhm
Deleting all Annotations would be one part. Maybe this could be done with s and regexps. Not sure if this approach would help with removing the generics ... Jan Von: Raja Nagendra Kumar [mailto:nagendra.r...@tejasoft.com] Gesendet: Samstag, 24. August 2013 12:18 An: user@ant.apache

AW: how do I "echo" or display the full command exec is about to run?

2013-08-20 Thread jhm
or display the full command exec is about > to run? > > Thanks for the reply. > Could you tell me in Eclipse how to configure ant to run in "-verbose" > mode? > > -Original Message- > From: Jan Matèrne (jhm) [mailto:apa...@materne.de] > Sent: 2013年8月20

AW: how do I "echo" or display the full command exec is about to run?

2013-08-20 Thread jhm
Run Ant in "-verbose" mode. Jan > -Ursprüngliche Nachricht- > Von: Vincent Cai [mailto:w...@cypress.com] > Gesendet: Dienstag, 20. August 2013 08:51 > An: user@ant.apache.org > Betreff: how do I "echo" or display the full command exec is about to > run? > > > This message and any attach

AW: AW: AW: Problems with ANTLR

2013-08-19 Thread jhm
One side note: you are using 1.8.2 (Dec 2010) and I suggest updating to 1.9.1 (Jul 2013). http://ant.apache.org/faq.html#history > Ok, got one step further: > now i have: > > > > > > > > classname="org.apache.tools.ant.antlr.ANTLR3" > classpathref

AW: AW: Problems with ANTLR

2013-08-18 Thread jhm
I downloaded the antlr.zip and had a look. In the ant-antlr3.jar there is the antlib.xml at your location. If all classes are present you could try using the taskdef from that antlib file: and remove your xmlns declarations. Jan > -Ursprüngliche Nachricht- > Von: Ernst Reissner [mai

AW: Use of XML Catalog with Ant (xslt task) - request for example

2013-08-14 Thread jhm
>From Ants test directory: snippet from the buildfile xsl http://www.w3.org/1999/XSL/Transform"; version="1.0"> xml http://chemical/brothers"; > in the absence of technology, the

AW: Problems with ANTLR

2013-08-11 Thread jhm
Maybe the antlib is not on the classpath? For loading antlibs via namespaces from custom classpath see http://ant.apache.org/manual/Types/antlib.html#loadFromInside Jan > -Ursprüngliche Nachricht- > Von: Ernst Reissner [mailto:rei3...@arcor.de] > Gesendet: Mittwoch, 7. August 2013 15:16 >

AW: getting information out of the source file and using it in apply tasks

2013-08-01 Thread jhm
My idea is reading the SGML file using some filterchains and regexps for extracting the DTD-name. But I dont know any way to inject that into . So the workaround here is iterating over the for yourself - antcontrib: for, foreach - loop using script (bsh, groovy, javascript) inside the buildfile

AW: Sending options to ANT task? Specifically the -q option to make it quiet

2013-07-03 Thread jhm
You cannot reconfigure the logger Ant uses. You have to start a complete new Ant instance. Jan sample: Call via 'ant' Call via 'java'

AW: Automate saving reports using ANT in multiple folder/directory

2013-06-06 Thread jhm
TestNG is not supported by Ant directly. So you have to declare the task and its location. See http://testng.org/doc/ant.html So place a e.g. after tag. But I would change a little bit more ... Jan

AW: editstring macro

2013-05-15 Thread jhm
n of that in antunit jar. > > I was after a solution that did _not_ require any additional > dependencies. > > Peter West > > "When the Spirit of truth comes, he will guide you into all the > truth..." > > On 15/05/2013, at 3:54 PM, Jan Matèrne (jhm)

AW: editstring macro

2013-05-14 Thread jhm
Have you tried Ant Props? http://ant.apache.org/antlibs/props/index.html https://svn.apache.org/repos/asf/ant/antlibs/props/trunk/src/tests/antunit/s tringops-test.xml - testReplaceFirst - testReplaceAll - testPackageMapping Jan > -Ursprüngliche Nachricht- > Von: Peter West [mailto:li...@

AW: How to run a single junit test method with ant

2013-05-14 Thread jhm
> void test2() {} > > } > > > > now I'd like to only test the "test2" with ant command line like > this: > > ant -Dtest=TestService -Dtestcase=test2 test-target Then how to write > > the build.xml? > > > > Thanks > > > > &g

AW: How to run a single junit test method with ant

2013-05-11 Thread jhm
Basic idea is - specify the test to run via command line property (-Dtestcase=...) - test-targets depends on two targets running a single test or the whole test suite - that two targets are conditional according to that property Jan > -Ursprüngliche Nachricht- > Von: Matt Ben

AW: basedir setting not working?

2013-04-18 Thread jhm
ting not working? > > Thanks Jan, > > I check out the project to 2 different locations. Hence the build file > resides in 2 different locations. yet, the basedir is the same in both > locations. This results in a failed build in one location. > > > > On Thu, Apr 18

AW: basedir setting not working?

2013-04-17 Thread jhm
The "." in the basedir attribute is relative to the buildfile itself, not the current directory. You could access that via ${user.dir} : BaseDir: ${basedir} UserDir: ${user.dir} You can't set that value as basedir because at the time when basedir is set, the system properties aren't pop

AW: AW: Automating cvs modules checkout with build.psf using Ant Script

2013-02-24 Thread jhm
> Sorry. I am not getting your point. I am trying to use the > projectSetImport to get the project names from the build.psf which is > below. > > > > Loaded projects = ${ImportedProjectNames} > Have a look at the documentation http://publib.boulder.ibm.com/infocenter/radhelp/v8

AW: Automating cvs modules checkout with build.psf using Ant Script

2013-02-23 Thread jhm
> I am able to checkout the projects directly in ant script using cvs > commands but i need an sample for the following requirement. Please > help. > > Need to run build.xml ant script with project name as argument. Ihe > script should take the build.psf and needs to checkout the required > projec