AW: JAVA_HOME to be changed dynamically

2006-07-05 Thread Jan.Materne
What do you mean with "run the remaining tests with jdk1.4" ? JDK1.5 JDK1.5 JDK1.5 JDK1.4 JDK1.4 something like that? That isnt possible as Ant is already running... But and support using another JDK for their work. Jan >-Ursprüngliche Nachricht- >Vo

AW: FixCRLF and Concat classes question

2006-07-05 Thread Jan.Materne
line.separator is set by the JVM. Why you dont use "eol" attribute? Jan >-Ursprüngliche Nachricht- >Von: Alex Egg [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 5. Juli 2006 22:58 >An: user@ant.apache.org >Betreff: FixCRLF and Concat classes question > >Hi, > >I notice that the Concat

Re: Age of files/directories

2006-07-05 Thread Antoine Levy-Lambert
Hello Guru, use the delete task with nested fileset(s) nesting themselves a date selector. Read the "Concept and Types" section of the ant manual, all the cool stuff is there. Antoine Guru Balse wrote: > From a given directory, I wish to delete any directory that is of a > certain age (example:

Age of files/directories

2006-07-05 Thread Guru Balse
From a given directory, I wish to delete any directory that is of a certain age (example: more than 7 days old). I could not find any task/macro/addin that will support this requirement. Any suggestions? Thanks in advance. -

FixCRLF and Concat classes question

2006-07-05 Thread Alex Egg
Hi, I notice that the Concat class constructor called a reset method which reads a system property called line.separator, like this: public Concat () { reset (); } /** * Reset state to default. */ public void reset () { append = false; forceOverwrite =

RE: Are there ANT tasks for SFTP?

2006-07-05 Thread Shailesh Sharma
is ant-jsch.jar is checked in and part of the release and how to download it from internet ? "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: Yes, You need to include jsch 0.1.28 in the lib directory, otherwise the ant-jsch.jar will not build because the resources to build it ar

RE: Are there ANT tasks for SFTP?

2006-07-05 Thread Shailesh Sharma
is ant-jsch.jar is checked in and part of the release ? "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: Yes, You need to include jsch 0.1.28 in the lib directory, otherwise the ant-jsch.jar will not build because the resources to build it are not available. Pay close attention

Re: build sub-source tree in the order I specified.

2006-07-05 Thread Martin Gainty
Interesting Question The way I structure projects goes like /// the order of compilation All Helper classes compiled first All classes of ClassName compiled Package compiled Company specific files compiled So in the case where you may have this equipment listing.. BigHealthCareCompany/HeartImager/

RE: build sub-source tree in the order I specified.

2006-07-05 Thread Chun Ji
I was trying to compile all the java files under that "/com" directory, but no good. The reason is some of the files under that source tree are not ready for build. That is why I found a way to build files under some subdir. But since there are some depends, so I have to force some files to buil

Re: build sub-source tree in the order I specified.

2006-07-05 Thread Jeffrey E Care
If you configure the task correctly the file order doesn't matter: the compiler will figure out the proper order. Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Developm

build sub-source tree in the order I specified.

2006-07-05 Thread Chun Ji
Hi I can edit a "list.txt" files as follows " com/manager/useraccount/** com/contractor/useraccount/** com/supplier/useraccount/** com/users/useraccount/** ... " And put such target in the build.xml " " In that way, the ANT will compile the files under each directory I specified one

Re: Trying to override old definition of task emptymacro

2006-07-05 Thread Dominique Devienne
I don't think macros were 'designed' to be overrideable, and the message you're seing may not be specific to macros, but applies to tasks in general (a macro defines a task on the fly kinda). The fact that the override is still done may be yet another quirk of Ant kept for backward compatibility r

Re: Trying to override old definition of task emptymacro

2006-07-05 Thread Scot P. Floess
Well I don't believe its actually overriding the macro def... You get the same kind of warning if you attempt to reassign a property... I mean, you could hand in data to your macrodef that denotes the type of work you want to perform... I'd have to give it more thought, but I don't think bas

Re: Trying to override old definition of task emptymacro

2006-07-05 Thread Cory Riddell
Our builds for release are slightly different than our internal development builds (like we sign jars on internal builds with a dummy test certificate vs our real certificate on shipping builds). There are only a few places that are different and those differences are isolated to an ant file that

javadoc and includeantruntime="false"

2006-07-05 Thread Jhair Tocancipa Triana
$ ant -version Apache Ant version 1.6.4 compiled on May 19 2005 With the following target the javadoc task's classpath includes the whole ant runtime jars. Are there plans to include a includeantruntime="false" option for javadoc (analog to the one for the java task) in future ant rel

javadoc and includeantruntime="false"

2006-07-05 Thread Jhair Tocancipa Triana
$ ant -version Apache Ant version 1.6.4 compiled on May 19 2005 With the following target the javadoc classpath includes the whole ant runtime. Are there plans to include a includeantruntime="false" option for javadoc (analog to the one for the java task) in future ant releases? [j

JAVA_HOME to be changed dynamically

2006-07-05 Thread 1800 tbsfunny
I set JAVA_HOME=c:\jdk1.5 before running ant. At some point inside the an ant target I want to change JAVA_HOME=c:\jdk1.4. And run the remaining tests with jdk1.4. Can I do this? Thanks, -Jed

Re: Migration problem, Windows to Linux

2006-07-05 Thread Fredrik Andersson
I gave an encoding parameter to the java compiler, thanks =) Den 7/5/2006, skrev "Dominique Devienne" <[EMAIL PROTECTED]>: >Either you don't change the characters, and set the encoding properly >in , , etc... to whatever the encoding defaults to on >Windows, or you change your files to be UTF8 co

Re: Migration problem, Windows to Linux

2006-07-05 Thread Dominique Devienne
You'll still need to fix the O's of @Override to find the proper annotations I'd think. --DD On 7/5/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote: Thanks for the tip I did encoding="ISO-8859-1" under my java compile options and it works better now :) Den 7/5/2006, skrev "Jeffrey E Care" <[EMA

Re: Migration problem, Windows to Linux

2006-07-05 Thread Dominique Devienne
Either you don't change the characters, and set the encoding properly in , , etc... to whatever the encoding defaults to on Windows, or you change your files to be UTF8 correct (using an escape sequence for the proper swedish chars), which seems to be the default on Linux, or finally you don't use

Re: Migration problem, Windows to Linux

2006-07-05 Thread Fredrik Andersson
Thanks for the tip I did encoding="ISO-8859-1" under my java compile options and it works better now :) Den 7/5/2006, skrev "Jeffrey E Care" <[EMAIL PROTECTED]>: >You should be able to set the encoding javac uses to read your files; that >would only require updating your build.xml. > >__

Re: Migration problem, Windows to Linux

2006-07-05 Thread Fredrik Andersson
Do you know the syntax? is it something like encoding=""? Den 7/5/2006, skrev "Jeffrey E Care" <[EMAIL PROTECTED]>: >You should be able to set the encoding javac uses to read your files; that >would only require updating your build.xml. > >

Re: Migration problem, Windows to Linux

2006-07-05 Thread Jeffrey E Care
You should be able to set the encoding javac uses to read your files; that would only require updating your build.xml. Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Dev

Re: Migration problem, Windows to Linux

2006-07-05 Thread Fredrik Andersson
Hi It turned out that my JAVA_HOME variabel was not set. I pointed it to my Java 5.0 installation and now it spews out a ton of these messages. [javac] /root/smc_projekt/Application/src/java/nu/absmc/action/ForsenadeController.java:10: warning: unmappable character for encoding UTF8 [javac]

Re: Migration problem, Windows to Linux

2006-07-05 Thread Dominique Devienne
This is probably an encoding issue. Your @ or capital-O caracters may not be the ASCII kind, but some variant. Verify this by running od -c on one of the file, and if you don't get an @ or O were you expect, that's the likely issue. --DD On 7/5/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote: Hi

Re: Migration problem, Windows to Linux

2006-07-05 Thread Petar Tahchiev
On 05/07/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote: Hi all I'm currently trying to migrate a J2EE project from a Windows platform to a Linux platform. I have cofigured the build.xml file accordingly to my setup on the linux platform. I have the same java setup on the linux server but when

Re: Migration problem, Windows to Linux

2006-07-05 Thread Scot P. Floess
Are you using JDK 1.5 under linux? Fredrik Andersson wrote: Hi all I'm currently trying to migrate a J2EE project from a Windows platform to a Linux platform. I have cofigured the build.xml file accordingly to my setup on the linux platform. I have the same java setup on the linux server but w

Migration problem, Windows to Linux

2006-07-05 Thread Fredrik Andersson
Hi all I'm currently trying to migrate a J2EE project from a Windows platform to a Linux platform. I have cofigured the build.xml file accordingly to my setup on the linux platform. I have the same java setup on the linux server but when I try to compile I get the following messages from ant. [j

Re: Trying to override old definition of task emptymacro

2006-07-05 Thread Scot P. Floess
Cory: Just curious, but why do you want to override your macrodef? Scot Cory Riddell wrote: I have two ant files. base.xml: In base emptymacro deriv.xml: When I do ant -f deriv.x

Re: classpath problem using the java task

2006-07-05 Thread James Fuller
to access env vars (http://ant.apache.org/manual/index.html) and then echo out. though its best to leave nothing to chance and completely control either via a batch script that runs Ant or definition in ant build file things like PATH, etc... gl, Jim Fuller ---

Re: classpath problem using the java task

2006-07-05 Thread James Abley
ant -v or ant -d for more verbose output as to what ANT is doing. Jeffrey E Care wrote: Check out your property definition for appserver-home. Jeffrey E. (Jeff) Care [EMAIL PROTECTED]

Re: Antcount - external filters

2006-07-05 Thread Patrick Martin
Thank you Jan. Patrick On 7/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I added it to svn yesterday, so it should be online soon. But I changed the contact adress to http://antcount.sourceforge.net/contacts.html instead of the root page of your site. Jan >I created a sourceforge pr