Re: javac task question

2023-12-22 Thread Alan Snyder
try my variant: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> O

Re: javac task question

2023-12-21 Thread Alan Snyder
gt; > > > > > > > > > > > Original Message > From: Alan Snyder [mailto:contagiousarrow...@cbfiddle.com] > Sent: Wednesday, December 20, 2023 at 23:37 UTC > To: Ant Users List > Subject: java

Re: javac task question

2023-12-20 Thread ilya Basin
ocs could be better too. I wasn't able to find examples of on the site. Please try my variant: Original Message From: Alan Snyder [mailto:contagiousarrow...@cbfiddle.com] Sent: Wednesday, December 20

Re: javac task question

2023-12-20 Thread Alan Snyder
I know of a couple of ways to run javac on more than one source tree. >> >> One way is to use nested src elements. >> >> Another way is like this: >> >> srcdir="${src}:${src2}” >> >> I would like to generalize this solution to a dynamicly

Re: javac task question

2023-12-19 Thread Jaikiran Pai
e than one source tree. One way is to use nested src elements. Another way is like this: srcdir="${src}:${src2}” I would like to generalize this solution to a dynamicly determined list of source trees. I thought that I could use srcpath for this purpose, but the task would fail if srcdir wa

javac task question

2023-12-17 Thread Alan Snyder
this purpose, but the task would fail if srcdir was not specified or it did not identify a valid directory. That restriction defeats my purpose. Is there a solution? Is the inability to use srcpath by itself a bug? Thank you. ---

Re: java.lang.UnsupportedOperationException raised when invoking the task

2023-10-23 Thread Jaikiran Pai
Happy to hear that Ant 1.10.14 gets the build passing on Java 21. -Jaikiran On 22/10/23 2:39 am, Rick Hillegas wrote: Thanks, Jaikiran and Don. Ant 1.10.14 gets me over this hurdle. I'll let you know if I encounter other issues building the next Derby release with Java 21 and this version of A

Re: java.lang.UnsupportedOperationException raised when invoking the task

2023-10-21 Thread Rick Hillegas
Thanks, Jaikiran and Don. Ant 1.10.14 gets me over this hurdle. I'll let you know if I encounter other issues building the next Derby release with Java 21 and this version of Ant. Cheers On 10/21/23 7:32 AM, Brutzman, Donald (Don) (CIV) wrote: As Indicated in the email thread, have gotten java

Re: java.lang.UnsupportedOperationException raised when invoking the task

2023-10-21 Thread Jaikiran Pai
Hello Rick, Ant 1.10.6 cannot be used with Java 21 because of this very SecurityManager usage within Ant. Considering this issue and Java SecurityManager's deprecation for removal, we have released Ant 1.10.14 a couple of months back https://lists.apache.org/thread/9vhk51nkw9wjxzm7xk2q9xm6s80

java.lang.UnsupportedOperationException raised when invoking the task

2023-10-20 Thread Rick Hillegas
I am running Java 21 (OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)) and Ant 1.10.6. The following stanza in my build.xml file raises a java.lang.UnsupportedOperationException:                     The maintversion2props class is very simple, it just writes a

Re: [External] : Antcontrib for task with 'parallel' option is not working in certain Windows Server machines

2022-07-28 Thread Dave Brosius
ility of few advanced if-else conditions like (isLessThan, isGreaterThan, etc.) in 1.0b3 according to the error message I got. What is puzzling is that even though 'For' task doesn't have the 'parallel' option in 0.6, how come it runs fine in some Windows Server box and n

Re: [External] : Antcontrib for task with 'parallel' option is not working in certain Windows Server machines

2022-07-28 Thread Munawar Rashid
Hi Dave, I can update to 1.0b3 easily. I do have an issue with unavailability of few advanced if-else conditions like (isLessThan, isGreaterThan, etc.) in 1.0b3 according to the error message I got. What is puzzling is that even though 'For' task doesn't have the 'parallel

Re: [External] : Antcontrib for task with 'parallel' option is not working in certain Windows Server machines

2022-07-25 Thread Dave Brosius
This is really an ant-contrib question,not an ant question, but i guess good luck getting  someone to respond there. When i look at 0.6 source, here https://sourceforge.net/projects/ant-contrib/files/ant-contrib/ant-contrib-0.6/ant-contrib-0.6-src.zip/download the For task doesn't not h

Antcontrib for task with 'parallel' option is not working in certain Windows Server machines

2022-07-25 Thread Munawar Rashid
Hi I'm using Ant 1.9.7 and Antcontrib 0.6. I have a script where I'm using the 'for' task with 'parallel' set to true. It fails on one Windows server 2012 R2 machine with error message "for doesn't support the "parallel" attribute". This s

Re: propertyregex ANT task - need to extract string without newline character

2020-10-16 Thread KM
I am not sure if the regex works the same as some of the others, but you could try "$" at the end after the asterisk.  Maybe like regexp="OBF:.*$" KM On Thursday, October 15, 2020, 12:01:44 PM EDT, forumUsr forumUsr wrote: Hello I have following ANT task whe

propertyregex ANT task - need to extract string without newline character

2020-10-15 Thread forumUsr forumUsr
Hello I have following ANT task where I like to extract string starting from a keyword until newline character: Java ANT task results in following output: 2020-10-14 13:55:00.549:INFO::pool-2-thread-1: Logging initialized

Re: jar task with duplicate="preserve"

2020-09-22 Thread Dave Brosius
The "abnormal" jar was created with the iajc ant task (aspectj) I'll see if i can get something together. On 9/22/20 2:10 AM, Stefan Bodewig wrote: Hi Dave On 2020-09-21, Dave Brosius wrote: In the end i just wrote my own custom ant task to do what jar was supposed to do. Wha

Re: jar task with duplicate="preserve"

2020-09-21 Thread Stefan Bodewig
Hi Dave On 2020-09-21, Dave Brosius wrote: > In the end i just wrote my own custom ant task to do what jar was > supposed to do. What i noticed was that one of the jars had >     1) no entries for the directories themselves >     2) items out of alphabetical order. > Don

Re: jar task with duplicate="preserve"

2020-09-21 Thread Dave Brosius
On 9/21/20 4:32 AM, Stefan Bodewig wrote: On 2020-09-15, Dave Brosius wrote: I have an ant task using ant 1.10.8, that includes use of the task as such:                                 ...                     There are in fact file collsions between the two jars

Re: jar task with duplicate="preserve"

2020-09-21 Thread Stefan Bodewig
On 2020-09-15, Dave Brosius wrote: > I have an ant task using ant 1.10.8, that includes use of the > task as such: >         **duplicate="preserve"*> >             includes="**/*" /> >             > ... >             >       

jar task with duplicate="preserve"

2020-09-14 Thread Dave Brosius
Hi folks, I have an ant task using ant 1.10.8, that includes use of the task as such:         **duplicate="preserve"*>             includes="**/*" />                                             value="${ant.project.name}" />   

Re: Can the Ant task "patch" be used in Linux for patching files with DOS linefeeds?

2020-09-04 Thread Stefan Bodewig
On 2020-09-02, Harri T. wrote: > 1. use the Ant task |patch| in Linux for patching files with DOS linefeeds? > 2. apply the option |--binary| with the Ant task |patch|? Th patch task doesn't support --binary, yet, but it would be very easy to add. Actually is really a simple wrappe

Can the Ant task "patch" be used in Linux for patching files with DOS linefeeds?

2020-09-02 Thread Harri T.
Hi, How can we... 1. use the Ant task |patch| in Linux for patching files with DOS linefeeds? 2. apply the option |--binary| with the Ant task |patch|? See the details below or at Stack Overflow <https://stackoverflow.com/q/63703418/2158271>. Kind regards, Harri Files * bui

Re: replaceregexp task overrides the file permissions

2020-08-09 Thread Stefan Bodewig
> After replacement, replaceregexp task overrode the permissions. It does, as do or or any other task where Ant creates a file by itself. Historically this all stems from Java not providing access to permissions of files or directories at all. Neither reading permissions nor writing t

replaceregexp task overrides the file permissions

2020-08-05 Thread forumUsr forumUsr
replacement, replaceregexp task overrode the permissions. I found below article that mentions this behavior as well: https://hmemcpy.com/2014/06/when-good-permissions-gone-bada-case-of-a-failed-build/ Is there an ANT task that I can use that will replace and retain the permissions of the file ? I

Re: task to print uploaded filenames

2020-02-21 Thread Stefan Bodewig
On 2020-02-20, Basin Ilya wrote: > Hi. How do I make the scp task print the filenames? verbose="true" is > too verbose. For the task itself, there is no in-between. > It also outputs the handshake details. I invoke it by passing a nested > fileset You can log the cont

task to print uploaded filenames

2020-02-20 Thread Basin Ilya
Hi. How do I make the scp task print the filenames? verbose="true" is too verbose. It also outputs the handshake details. I invoke it by passing a nested fileset --

Re: ant wsimport2 task example with jdk 11 or above

2019-12-23 Thread Atul Pendse
Atul Pendse wrote: >>> Does anyone have an example of wsimport ant task that works with JDK 11 or >>> above? >>> I would greatly appreciate any help around this. >>> We are migrating from jdk8 to jdk 11/12/13, but can't seem to get wsimport >&

Re: ant wsimport2 task example with jdk 11 or above

2019-12-21 Thread Atul Pendse
Thanks Craig, I will try this. Thanks, Atul > On 21-Dec-2019, at 11:40 PM, Craig Pell wrote: > > On 12/20/19 1:47 PM, Atul Pendse wrote: >> Does anyone have an example of wsimport ant task that works with JDK 11 or >> above? >> I would greatly appreciate any

Re: ant wsimport2 task example with jdk 11 or above

2019-12-21 Thread Craig Pell
On 12/20/19 1:47 PM, Atul Pendse wrote: Does anyone have an example of wsimport ant task that works with JDK 11 or above? I would greatly appreciate any help around this. We are migrating from jdk8 to jdk 11/12/13, but can't seem to get wsimport working with ant. JAX-WS has been re

Re: ant wsimport2 task example with jdk 11 or above

2019-12-20 Thread Jaikiran Pai
I don't have much knowledge of this task, but what is the exact issue that you are running into with it in Java 11? Can you paste the relevant build snippet and the complete stacktrace (if any)? -Jaikiran On 21/12/19 12:17 AM, Atul Pendse wrote: > Hi, > > Does anyone have an examp

ant wsimport2 task example with jdk 11 or above

2019-12-20 Thread Atul Pendse
Hi, Does anyone have an example of wsimport ant task that works with JDK 11 or above? I would greatly appreciate any help around this. We are migrating from jdk8 to jdk 11/12/13, but can't seem to get wsimport working with ant. Thanks,

AW: Issue with sql task accessing MySql

2019-08-31 Thread jhm
19 16:04 > An: user@ant.apache.org > Betreff: Re: Issue with sql task accessing MySql > > Just to get the solution documented this thread, here's what I did. > This is a winders 7 machine running ant in cygwin. The ant call: > >value="update_build_tabl

Re: Issue with sql task accessing MySql

2019-08-29 Thread Eric Fetzer
l your help!     On Wednesday, August 28, 2019, 04:02:17 PM EDT, Stefan Bodewig wrote:  On 2019-08-28, Eric Fetzer wrote: >  Is there a way to set that version JUST for this call? I'm afraid there is no way to run the task in a different JVM than the rest of Ant. Judging from htt

Re: Issue with sql task accessing MySql

2019-08-29 Thread Eric Fetzer
>  Is there a way to set that version JUST for this call? I'm afraid there is no way to run the task in a different JVM than the rest of Ant. Judging from https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-versions.html your MySQL Connector requires Java8 as a minimum. But then again

Re: Issue with sql task accessing MySql

2019-08-28 Thread Stefan Bodewig
On 2019-08-28, Eric Fetzer wrote: > Is there a way to set that version JUST for this call? I'm afraid there is no way to run the task in a different JVM than the rest of Ant. Judging from https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-versions.html your MySQL Connector

Re: Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
Also, any clue what version of Java do I need to use with this?  1.8? On Wednesday, August 28, 2019, 12:57:34 PM MDT, Eric Fetzer wrote: Is there a way to set that version JUST for this call?  We're building a legacy application here that CANNOT upgrade to a newer version of Java... 

Re: Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
Is there a way to set that version JUST for this call?  We're building a legacy application here that CANNOT upgrade to a newer version of Java...  Thanks! On Wednesday, August 28, 2019, 12:28:55 PM MDT, Stefan Bodewig wrote: On 2019-08-28, Eric Fetzer wrote: >  Thanks Stefan, a bit

Re: Issue with sql task accessing MySql

2019-08-28 Thread Stefan Bodewig
On 2019-08-28, Eric Fetzer wrote: > Thanks Stefan, a bit better: > $ ant -f test.xmlBuildfile: test.xml > main: > BUILD FAILEDc:\BuildDeployScripts\test.xml:22: > java.lang.UnsupportedClassVersionError: (com/mysql/jdbc/Driver) bad major > version at offset=6 > Total time: 0 seconds You are run

Re: Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
Bodewig wrote: On 2019-08-28, Eric Fetzer wrote: > The MySql server I'm accessing upgraded to version 8.0.17: > So, accordingly, I downloaded the proper driver and linked to it in my task: > > BUILD FAILEDc:\BuildDeploySc

Re: Issue with sql task accessing MySql

2019-08-28 Thread Stefan Bodewig
On 2019-08-28, Eric Fetzer wrote: > The MySql server I'm accessing upgraded to version 8.0.17: > So, accordingly, I downloaded the proper driver and linked to it in my task: > > BUILD FAILEDc:\BuildDeployScripts\test.xml:22: > com.mysql.jdbc.exceptions.MySQLNonTransien

Issue with sql task accessing MySql

2019-08-28 Thread Eric Fetzer
The MySql server I'm accessing upgraded to version 8.0.17: mysql> select version();+---+| version() |+---+| 8.0.17    |+---+1 row in set (0.00 sec) So, accordingly, I downloaded the proper driver and linked to it in

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

Re: Skipping a javah task with Java 10 and higher

2019-05-07 Thread 大平怜
s.html > > > > > > > > > ... > > > > > > > > > > Jan > > > -Ursprüngliche Nachricht- > > Von: Jaikiran Pai [mailto:jaiki...@apache.org] > > Gesendet: Dienstag, 7. Mai 2019 07:38 > > An: user@ant.apache.

AW: Skipping a javah task with Java 10 and higher

2019-05-06 Thread jhm
Dienstag, 7. Mai 2019 07:38 > An: user@ant.apache.org > Betreff: Re: Skipping a javah task with Java 10 and higher > > Recent versions of Ant (starting 1.10.2) have a "javaversion" > condition[1] which you can use to setup a "property" which can then be >

Re: Skipping a javah task with Java 10 and higher

2019-05-06 Thread Jaikiran Pai
//ant.apache.org/manual/Tasks/conditions.html#javaversion -Jaikiran On 07/05/19 10:53 AM, 大平怜 wrote: > Hello, > > My build.xml has a javah task. Since it no longer works with Java 10 and > higher, I added nativeHeaderDir to a javac task, and it is working fine. > However, I still want to

Skipping a javah task with Java 10 and higher

2019-05-06 Thread 大平怜
Hello, My build.xml has a javah task. Since it no longer works with Java 10 and higher, I added nativeHeaderDir to a javac task, and it is working fine. However, I still want to keep the javah task, so that the same build.xml works for older Java. How can I make ant skip the javah task only when

AW: Creating task/macro wrappers

2019-02-25 Thread jhm
Maybe writing your own Task in Java is the easiest and most maintainable way. The task collects all data and then uses the existing testng task via delegation. (don’t forget to pass project and location reference) Jan > -Ursprüngliche Nachricht- > Von: Isaac Jurado [mailto

Re: Creating task/macro wrappers

2019-02-25 Thread Isaac Jurado
its limits (in terms of XML syntax). And the behavior of the task implemented in Java doesn't help much either, not interpreting empty strings as null values. But thanks anyway. On Mon, Feb 25, 2019 at 7:53 PM Matt Benson wrote: > > You could conditionally with or without the desired

Re: Creating task/macro wrappers

2019-02-25 Thread Matt Benson
In this case, the default value of timeout is null, > which cannot be represented in a build.xml file. Using the following: > > > > ... > > > Doesn't work with the default value because TestNGAntTask.setTimeout() > accepts an Integer which Ant cannot parse. &

Re: Creating task/macro wrappers

2019-02-25 Thread Isaac Jurado
. Then, using seems like the way to go. However, is a task which executes immediately. So none of the following options work: ... ... The first one fails because the reference is defined after , and the second one doesn't achieve the desired resu

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.c

Re: Creating task/macro wrappers

2019-02-24 Thread Isaac Jurado
Thanks! I didn't notice the task existed. However, I don't seem to wrap my head around it. In particular, it doesn't seem to support forward references. This is what I tried: ... The error I get is: java.lang.IllegalStateException: Unknown refer

Re: Creating task/macro wrappers

2019-02-23 Thread Al Le
You could write a script, e.g. in JavaScript. There, you would create a new instance of the testng task (using the global 'project' object), then set all the necessary attributes and nested elements of the task (don't forget to set the owning target), and, finally, call its &

Re: Creating task/macro wrappers

2019-02-23 Thread Matt Benson
Look into the task with conditionally executed (using if/unless namespaces, antcontrib , or similar) blocks. HTH, Matt On Sat, Feb 23, 2019, 3:37 AM Isaac Jurado wrote: > Hello Ant users, > > I'm trying to create a wrapper over . The idea is > to have my macro expose th

Creating task/macro wrappers

2019-02-23 Thread Isaac Jurado
Hello Ant users, I'm trying to create a wrapper over . The idea is to have my macro expose the same attributes that supports, with as close semantics as possible. Unfortunately, I have no idea how to reproduce the presence/absence behavior. For instance, accepts a "timeout" integer attribute

Re: How to find out the classpath used to load a custom task

2018-12-09 Thread Al Le
PS. Since the custom task is in the same JAR as the main class, I could just call the 'main' method from the task's 'execute' method. I'd still prefer to do it via the Java task to be able to fork etc. Am 08.12.2018 um 21:57 schrieb Al Le: Hello, I have crea

How to find out the classpath used to load a custom task

2018-12-08 Thread Al Le
Hello, I have created a JAR that contains (among other things) a java class with the 'main' method, i.e. it can be executed from the command line or using the 'java' task. The program can take many parameters on the command line; the parameters have not very nice names

Re: NoSuchMethodException using ant junit task against junit 5 5.3.1

2018-10-03 Thread Jaikiran Pai
Hello Dave, Can you add some details like what jars (especially the ones that contain the Ant JUnit task classes) are present in the classpath? An output of ant -v might also be useful. There was an unintentional change in one of 1.10.x releases which affected the signature of the clone

NoSuchMethodException using ant junit task against junit 5 5.3.1

2018-10-03 Thread Dave Brosius
I am running ant 1.10.5 against the 5.3.1/1.3.1 of junit 5 and getting java.lang.NoSuchMethodError: org.apache.tools.ant.types.CommandlineJava.clone()Lorg/apache/tools/ant/types/CommandlineJava; Anyone know what i'm missing? It works fine with 5.2.0/1.2.0. -- ---

Re: Jar task: --module-version and --main-class options

2018-10-01 Thread Stefan Bodewig
files - actually java.util.zip is to blame and forced us to recreate our own zip library. Ant's task really mostly is a manifest aware variant of and some of the features the task offers (merging manifests while merging archives) would be difficult to do with the jar command line tool.

Re: Jar task: --module-version and --main-class options

2018-10-01 Thread Bruce Alspaugh
ew options to the jar tool: https://docs.oracle.com/en/java/javase/11/tools/jar.html I would like to use the --module-version and --main-class options with Ant's Jar task, but I could not find them in the manual: https://ant.apache.org/manual/Tasks/jar.html I can accomplish this usi

Re: Jar task: --module-version and --main-class options

2018-10-01 Thread Stefan Bodewig
On 2018-10-01, Bruce Alspaugh wrote: > Java 9 and later add several new options to the jar tool: > https://docs.oracle.com/en/java/javase/11/tools/jar.html > I would like to use the --module-version and --main-class options with > Ant's Jar task, but I could not find t

Jar task: --module-version and --main-class options

2018-10-01 Thread Bruce Alspaugh
Java 9 and later add several new options to the jar tool: https://docs.oracle.com/en/java/javase/11/tools/jar.html I would like to use the --module-version and --main-class options with Ant's Jar task, but I could not find them in the manual: https://ant.apache.org/manual/Tasks/jar.ht

RE: How to set content type in "get" task?

2018-05-26 Thread Al Le
He-he, I've just discovered that the GET task does support headers, and does so via nested "header" elements. Since Ant 1.8.0, released in 2010. I don't know how I missed that then. And nobody pointed me to the fact :-)

Re: Question about the task life cycle (one shot or not)

2018-02-19 Thread Stefan Bodewig
On 2018-02-19, Al Le wrote: > I have a question about how many times a task is instantiated during a > build. I've read the description at > https://ant.apache.org/manual/develop.html but still a question > remains. > [BTW, there is a typo on that page: "addCondifgi

Question about the task life cycle (one shot or not)

2018-02-19 Thread Al Le
Hello, I have a question about how many times a task is instantiated during a build. I've read the description at https://ant.apache.org/manual/develop.html but still a question remains. [BTW, there is a typo on that page: "addCondifgired"] The mentioned page describes very

Re: API to create a temp file for the duration of task execution

2018-02-18 Thread Stefan Bodewig
reated and whether it should be deleted on VM exit in a single method invocation. > 2. How would I ensure that the file is deleted after the task > completes? Is there some mechanisms for this is Ant? Or should I just > carefully program try-catch-finally and delete the file in the fina

API to create a temp file for the duration of task execution

2018-02-18 Thread Al Le
Hello, I'd like to implement a custom task. Its implementation would perform following things: 1. Create a file (in .properties format) 2. Do some magic (the main logic of the task) which uses the file created in step 1. 3. Delete the file created in step 1. You see that the file

AW: Task for "javapackager"?

2017-09-25 Thread jhm
> -Ursprüngliche Nachricht- > Von: Roger Whitcomb [mailto:roger.whitc...@actian.com] > Gesendet: Donnerstag, 17. August 2017 16:20 > An: Ant Users List > Betreff: Task for "javapackager"? > > Hi all, > Does anyone use "javapackager&quo

Re: Passing system properties by default to java task

2017-08-18 Thread Stefan Bodewig
On 2017-08-17, Al Le wrote: > How can I achieve that some system properties are passed to the JVM > started by the 'java' task with the 'fork=true' option without > specifying them explicitly in the script? Setting clonevm to true will copy over all system prop

Passing system properties by default to java task

2017-08-17 Thread Al Le
Hello, I'd need an advice from the experts. In my ant script, I run a java program several times (up to 20) via the 'java' task. The program opens a connection to some server and uses the IAIK library for this (some Java security stuff). The server requires a certain level

Task for "javapackager"?

2017-08-17 Thread Roger Whitcomb
Hi all, Does anyone use "javapackager" with Ant? It has a ton of options, and can be run with just

Using Ant with JSPs - Jasper JSPC task with an excluded list of JSP files to compile

2017-08-11 Thread M. Manna
Hello, Just running this by Apache Ant user group since I am not sure whether anyone has a workaround for this yet. i am not sure if Jasper (JSPC) currently supports excluding a list of JSP files using typical or directive. Jpsc is a directory based task so it does have pathname include

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

2017-06-05 Thread Al Le
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 Matèrne (jhm) Betreff: Re: How to define a task with nested elements in Ant? Hrm... It would be cool if there existed a task which would allow t

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

2017-06-05 Thread jhm
atèrne (jhm) > Betreff: Re: How to define a task with nested elements in Ant? > > Hrm... > > It would be cool if there existed a task which would allow to construct > the translation of the task in Ant into some other existing tasks, e.g. > using XPath. > > I.e. you&#x

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

2017-06-05 Thread Alexander Levin
Hrm... It would be cool if there existed a task which would allow to construct the translation of the task in Ant into some other existing tasks, e.g. using XPath. I.e. you'd 1. Define the syntax of a new task; not with 'attribute' and 'element' (like in macrod

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

2017-06-04 Thread Al Le
Hrm... It would be cool if there existed a task which would allow to construct the translation of the task in Ant into some other existing tasks, e.g. using XPath. I.e. you'd 1. Define the syntax of a new task; not with 'attribute' and 'element' (like in macrod

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

How to define a task with nested elements in Ant?

2017-06-03 Thread Al Le
Hello, is it possible to define a task in Ant which would have some nested elements? Sort of like how it's done with the macrodef task but with a bit structure. For example, I'd like to define a task which would be used as follows: This should internally tr

Aw: Re: macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
Yes, it works! Thank you! > Gesendet: Montag, 29. Mai 2017 um 12:16 Uhr > Von: "Stefan Bodewig" > An: user@ant.apache.org > Betreff: Re: macrodef with parameters to pass to java task > > On 2017-05-29, Al Le wrote: > > > in my ant script I'd like to

AW: macrodef with parameters to pass to java task

2017-05-29 Thread jhm
he.org] > Gesendet: Montag, 29. Mai 2017 12:17 > An: user@ant.apache.org > Betreff: Re: macrodef with parameters to pass to java task > > On 2017-05-29, Al Le wrote: > > > in my ant script I'd like to define a macro (via macrodef) which > would call the 'java' task

Re: macrodef with parameters to pass to java task

2017-05-29 Thread Stefan Bodewig
On 2017-05-29, Al Le wrote: > in my ant script I'd like to define a macro (via macrodef) which would call > the 'java' task as a part of its body/implementation. > In the java task call in the macro, I want to just specify the main class > name and the classpath

Aw: macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
I'm sorry, the last closing tag in the example should of course be "". > Gesendet: Montag, 29. Mai 2017 um 12:04 Uhr > Von: "Al Le" > An: user@ant.apache.org > Betreff: macrodef with parameters to pass to java task > > Hello, > > in my an

macrodef with parameters to pass to java task

2017-05-29 Thread Al Le
Hello, in my ant script I'd like to define a macro (via macrodef) which would call the 'java' task as a part of its body/implementation. In the java task call in the macro, I want to just specify the main class name and the classpath. The parameters (which are usually specified

Question Regarding Ant Build and Jspc Task (Tomcat JSPC, not ANT depricated JSPC)

2017-05-05 Thread Mohammed Manna
deployment. 2) I expected that any method footprint violation (>64k) should be checked and informed by ant jspc task. But it seems not. I also want to quote this (don't know if it holds true) from Ant JSPC task doc https://ant.apache.org/manual/Tasks/jspc.html *"This task can be used to p

AW: How to specify a password parameter in Java task

2017-02-27 Thread jhm
] > Gesendet: Samstag, 25. Februar 2017 15:34 > An: user@ant.apache.org > Betreff: Re: How to specify a password parameter in Java task > > On 2017-02-24, Al Le wrote: > > > When I run the script with the "-v" option that parameter is also > > written out to

Re: How to specify a password parameter in Java task

2017-02-25 Thread Stefan Bodewig
On 2017-02-24, Al Le wrote: > When I run the script with the "-v" option that parameter is also > written out to console, in clear text. Is it possible to tell ant to > not write out the value in clear text but rather to display it as, > say, '***'. > Something like No there is no such capabili

How to specify a password parameter in Java task

2017-02-24 Thread Al Le
Hello, in my ant script, I have a call to the "java" task. The parameters are specified via nested "arg" elements. One of the parameters is a password; its value is not stored in the script but is calculated by a javascript and saved to an ant property. When I run the

Re: Re: Ant get task to accept arbitrary header

2017-01-21 Thread Arcadius Ahouansou
Hello AI Le. I got it working now. I will create a Jira ticket and submit a patch early next week. Thank you very much for your help. BTW: in this working implementation, I no longer use to group the header tags...I have now: Arcadius. On 20 January 2017 at 06:45, Al Le wrote: > > Ple

Aw: Re: Ant get task to accept arbitrary header

2017-01-19 Thread Al Le
> Please, after changing the java code, what are the steps required to let > the tag accept children nodes and ? You should have methods like "setHeaders" (for the headers element) and "addHeader"/"addConfiguredHeader" for the nested elements. See https://ant.apache.org/manual/develop.html fo

Re: Ant get task to accept arbitrary header

2017-01-19 Thread Arcadius Ahouansou
Hello. I am using the and get task for downloading files from a remote server. The server requires tokens custom headers for authentication/authorization i.e. I was wondering whether it's a good idea to add that to the current get task. I got the source code from github and did some ch

Ant get task to accept arbitrary header

2017-01-19 Thread Arcadius Ahouansou
Hello. I am using the and get task for downloading files from a remote server. The server requires tokens custom headers for authentication/authorization i.e. I was wondering whether it's a good idea to add that to the current get task. I got the source code from github and did some ch

exec task fails for service account

2017-01-17 Thread Sebastian Götz
Hi guys, I have some troule with my ANT build. We just migrated our CI-Server (Jenkins) to a new machine. The former was a Windows Server 2008 R2 and now we have a Windows 10 machine. After installing Jenkins and ANT and Java and all the other stuff and restoring the configuration backup I can

How to enable XInclude processing for schemavalidate task

2016-05-24 Thread SCHOEPFLIN Markus
Hello list, I'm trying to enable XInclude processing in the schemavalidate task: http://apache.org/xml/features/xinclude"; value="true"/> This does not work, as I'm still getting an error when the task is executed: "foo.xsd:8:136: s4s-elt-sc

Regexp mapper + Zip task on Windows

2016-05-13 Thread Gilles Querret
Hello, Using this test case, I see a different behavior on Windows and Linux ; I'm creating two files, then generating a ZIP file (with regexpmapper to rename files), wait a few seconds (just in case there's FS timestamp problem) and re-execute the same Zip task. On Linux, the secon

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 [<a rel="nofollow" href="mailto:al...@gmx.de&qu

How to create a task associated a target

2016-04-25 Thread Al Le
Hello, in my ant script, I do the following: 1. there is a target "calledTarget" 2. there is a task "macroTask", defined via "macrodef". This task contains in its body a call to "calledTarget" (via "antcall"). 3. there is a target "mainT

Re: How to set content type in "get" task?

2016-03-19 Thread Chris Barlock
Is curl an option? You can run it with the Ant exec task. Chris From: Al Le To: Ant Users List Date: 03/17/2016 02:33 AM Subject:Re: How to set content type in "get" task? > No, the get task doesn't support setting the Accept-Header. > Probably pr

Re: How to set content type in "get" task?

2016-03-19 Thread Scot P. Floess
I've kept your email in my inbox wanting to see if I could help. Now that I'm trying - I'm surprised you can't specify the Content-Type. I do a fair bit of REST work so I absolutely understand your desire for this functionality. I found ant-contrib has a post task but

  1   2   3   4   5   6   7   8   9   10   >