Re: [External] : Re: ant/jdk17, and badly generated jars

2023-10-27 Thread Dave Brosius
7/23 20:33, Jaikiran Pai wrote: Hello Dave, In addition to what Stefan noted, could you also tell us which specific version of Java 17 this is? The output from "java -version" command would be useful. -Jaikiran On 27/10/23 11:31 pm, Stefan Bodewig wrote: Hi Dave Dave Brosius writes:

ant/jdk17, and badly generated jars

2023-10-26 Thread Dave Brosius
HI folks, we have an odd situation where we have an ant build that generates a jar file that includes a resource bundle property file using , later in the same build  a custom ant task is executed, which loads that class from  the classpath, and tries to read that bundle file, and fails  with

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

2022-07-28 Thread Dave Brosius
now. Thanks, Munawar From: Dave Brosius Sent: Monday, July 25, 2022 7:14 PM To: user@ant.apache.org Subject: Re: [External] : Antcontrib for task with 'parallel' option is not working in certain Windows Server machines This is really an ant-contrib q

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 have a

Re: [External] : Variable substitution in target descriptions

2022-07-19 Thread Dave Brosius
Correct, not that big of a change, i guess. On 7/19/22 12:20, Roger Whitcomb wrote: I have a target description that has “${result.jar}” embedded within. But “ant -p” doesn’t do the substitution. I’m presuming that’s because the “-p” processing doesn’t evaluate condition or property tasks. But

Re: [External] : Odd jdk8->jdk17 behaviour with ant

2022-07-04 Thread Dave Brosius
jar task. Instead it internally uses (an in-process) set of APIs for writing out the output stream. -Jaikiran On 04/07/22 8:31 pm, Dave Brosius wrote: Rubber Duck Debugging at it's finest. I changed the code to do and now it works fine. On 7/4/22 10:45, Dave Brosius wrote: H

Re: [External] : Odd jdk8->jdk17 behaviour with ant

2022-07-04 Thread Dave Brosius
out the output stream. -Jaikiran On 04/07/22 8:31 pm, Dave Brosius wrote: Rubber Duck Debugging at it's finest. I changed the code to do and now it works fine. On 7/4/22 10:45, Dave Brosius wrote: Hi Folks,     I realize this is probably difficult to understand, or give ide

Re: [External] : Odd jdk8->jdk17 behaviour with ant

2022-07-04 Thread Dave Brosius
Rubber Duck Debugging at it's finest. I changed the code to do and now it works fine. On 7/4/22 10:45, Dave Brosius wrote: Hi Folks,     I realize this is probably difficult to understand, or give ideas on, but i'll give it a go. I have an existing build.xml file that'

Odd jdk8->jdk17 behaviour with ant

2022-07-04 Thread Dave Brosius
Hi Folks,     I realize this is probably difficult to understand, or give ideas on, but i'll give it a go. I have an existing build.xml file that's been used for years to build on java8 (ant 1.10.2). Now trying to migrate stuff to 17. Ran in to this problem, and going to simplify as best as

Re: [External] : Re: [VOTE] Release Apache Ant 1.10.12 based on RC1

2021-10-02 Thread Dave Brosius
Thanks, appreciate your efforts. On 10/2/21 8:28 AM, Jaikiran Pai wrote: +1 - Downloaded the .tar.gz binary - Checked the NOTICE file and some random manuals - Built internal projects using Java 8 and this version of Ant - Built some sample projects with Java 17 and this version Ant All loo

Re: [External] : Re: Initial file for Ant

2021-08-14 Thread Dave Brosius
The project name among other defines a property that can be used throughout the script referenceable by ${ant.project..name} That Curly syntax Returns the value of the property. As for ant, the two main items in a file or property definitions and task definitions. Property definitions just sent

Re: Can I load a project from a String / InputStream?

2020-12-30 Thread Dave Brosius
it might be easier (depending on your needs) to just create the ant objects directly, like Project p = new Project(); MyTask t = new MyTask(); t.setProject(p); t.setProperty("foo"); t.execute(); On 12/31/20 12:32 AM, Ioan Eugen Stan wrote: Hello, I would like to know if there

junitlauncher hangs after execution tests

2020-12-01 Thread Dave Brosius
I have an ant task using ant 1.10.9 that run in forked mode, the tests run immediately, but then it just hangs with no further output with either -v or -d test: [junitlauncher] [junitlauncher] Test run finished after 342 ms [junitlauncher] [ 2 containers found  ] [junitlauncher] [

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

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}" />                 value="${ant.project.name}" />                

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: globmapper question

2007-06-11 Thread Dave Brosius
For the curious, i was able to fix my problems by using pathconvert from="${uptodate.path}/*.java" to="${uptodate.path}/qproxy/*.java"/> - Original Message ----- From: "Dave Brosius" <[EMAIL PROTECTED]> To: "Ant Us

Re: globmapper question

2007-06-11 Thread Dave Brosius
the .. in filenames consistently. --dave - Original Message - From: "Dave Brosius" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Saturday, June 09, 2007 8:11 PM Subject: globmapper question I'm trying to use a globmapper with uptodate task. suc

globmapper question

2007-06-10 Thread Dave Brosius
I'm trying to use a globmapper with uptodate task. such as to="${qproxy.src.dir}/qproxy/*.java"/> unless="proxy.uptodate" description="build a qproxy class from a regular class using the QProxyParser"> Used like: value="AsyncJobSvcHdlr.java"/>

custom 'compiler' dependencies

2007-06-07 Thread Dave Brosius
Hello, I'm trying to figure out how to build custom dependency rules for a custom 'compiler' i have written. I see the DependSet task which is sort of what i need, but i don't see in the docs where you can specify if *.xml is newer than *.java, than run the tool that generates *.java

Input task problems

2007-02-22 Thread Dave Brosius
I have cases where i have an input task such as and when run I get (with shown input) [input] Enter Info: Something [input]More Info: That is, i enter some value for the first input, hit enter, and ant doesn't proceed. I have to hit enter two more times, and then it proceeds, wit

Troubles with task

2007-02-22 Thread Dave Brosius
I have cases where i have an input task such as and when run I get (with shown input) [input] Enter Info: Something [input]More Info: That is, i enter some value for the first input, hit enter, and ant doesn't proceed. I have to hit enter two more times, and then it proceeds, with

Re: containsregex and concat

2006-11-26 Thread Dave Brosius
.*? doesn't seem right to me. what's that's suppposed to do? probably something like [^<]* - Original Message - From: "George Bills" <[EMAIL PROTECTED]> To: Sent: Sunday, November 26, 2006 11:47 PM Subject: containsregex and concat I've been trying to use a regular expression an

Re: problem with sql task

2005-09-21 Thread Dave Brosius
probably driver -> oracle.jdbc.driver.OracleDriver url -> jdbc:oracle:thin:@myhost:1521:orcl - Original Message - From: "Harshal Chavda" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 21, 2005 10:43 PM Subject: problem with sql task Hello fellow users, I am having problems

Re: Creating two same-type subelements with different names

2005-07-26 Thread Dave Brosius
ah! ok. i thought the method name and type had to match. - Original Message - From: "Conor MacNeill" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Tuesday, July 26, 2005 8:42 PM Subject: Re: Creating two same-type subelements with different names Dav

Creating two same-type subelements with different names

2005-07-26 Thread Dave Brosius
sorry, i realized i posted this under a copied message subject, which made no sense. so here goes again. Howdy, I have my own task that requires two FileSet sub-elements. In order to differentiate them from a naming point of view, i have created my own tasks that are empty subclasses of File

Re: Regexp pattern list

2005-07-22 Thread Dave Brosius
Howdy, I have my own task that requires two FileSet sub-elements. In order to differentiate them from a naming point of view, i have created my own tasks that are empty subclasses of FileSet, merely for the reason of naming. It works fine, but was just wondering if this was the expected way to

Re: convert ascii to ebcdic files using ant

2005-04-11 Thread Dave Brosius
You could always write a CharSetProvider for ebcdic if your jvm didn't support it natively. They are pretty simple to write so long as you are clear to how the encoding actually works. In fact i'd be surprised if there wasn't a freely available one already available. - Original Message -