FTP for Japanese file names

2007-02-09 Thread Sann Maung
I am using FTP task to transfer the files using ant. Under normal circumstances, it is working fine. However, if the filenames are in Japanese characters, (eg. Kanji) then it becomes an error and the file transfer cannot continue. I thought that kanji needs UTF-16, so I tried t

RE: at my wits end with delete

2007-02-09 Thread Tracy Jones
Yeah Glenn - I wondered that too. I changed Rob's example to use parens in the directory name and it was fine. I think the sym links are messing things up... -Original Message- From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 4:38 PM To: Ant Users Lis

RE: at my wits end with delete

2007-02-09 Thread Tracy Jones
Success!!! Changed Rob's script to use apply instead of delete Now it works perfectly. Out of curiosity - anyone know why?? Tracy -Original Message- From: Tracy Jones Sent: Friday, February 09, 2007 4:28 PM To: Ant Users List Subject: RE: at my wits

Re: at my wits end with delete

2007-02-09 Thread glenn opdycke-hansen
I was wondering if the parens in the names could be causing the issue. Perhaps if they are escaped that would help. > -Original Message- > From: Tracy Jones [mailto:[EMAIL PROTECTED] > Sent: Friday, February 09, 2007 3:09 PM > To: Ant Users List > Subject: RE: at my wits end with delete

RE: at my wits end with delete

2007-02-09 Thread Tracy Jones
Thanks Rob - I tried your exact test and it worked fine as well. Then I just changed your test.xml to point to my directory and changed the properties file to my list and it does not work. There must be something odd about my directory structure - there are a lot of symbolic links in my directo

Re: Question about debug output

2007-02-09 Thread Jon Rue
Thanks but I know its not finding that class hence the error. I'm trying to figure out why there are differences in running Ant from within the IDE and running it from command line (which works flawlessly). Can someone answer my original question concerning the class loader? Thanks, Jon Rue B

RE: at my wits end with delete

2007-02-09 Thread Anderson, Rob (Global Trade)
Hmm, Not sure why there is still a problem. I setup a simple test that is similar to your situation like this... mkdir -p test/A test/B test/C test/D test/E touch test/A/new test/B/new test/C/new test/D/new test/E/new Then I made the following build.xml... And a build.pro

RE: at my wits end with delete

2007-02-09 Thread Tracy Jones
Ok - thanks for the help!! I made the changes that everyone suggested and now it does not delete anything at all (which is better in a way) changed my exclude to excludes (but it's a space separated list which is read from a properties file) - this is what it looks like in the properties file di

RE: at my wits end with delete

2007-02-09 Thread Anderson, Rob (Global Trade)
The excludes should be comma seperated. It's difficult to tell from your post whether or not that is the case. Please send the part of your build.xml that defines the excludes. -Rob Anderson > -Original Message- > From: Tracy Jones [mailto:[EMAIL PROTECTED] > Sent: Friday, February 09,

Re: at my wits end with delete

2007-02-09 Thread Dominique Devienne
${directories} is OS-4000-1.6(B18)Beta/** OTS-SC-1.6(B18)Beta/** OTS-4010-1.6(B17)Beta/** OTS-4040-1.6(B17)Beta/** ... It's a classic error Tracy. takes a *single* pattern, not a list of patterns. It's the excludes attribute of fileset that takes a list of patterns, and the

at my wits end with delete

2007-02-09 Thread Tracy Jones
I just cannot get this right I have set up my fileset to exclude a list of directories and delete everything else fileset: Setup scanner in dir /opt/stratalight/packages with patternSet{ includes: [*/**] excludes: [OS-4000-1.6(B18)Beta/** OTS-SC-1.6(B18)Beta/** OTS-4010-1.6(B17)Beta/** O

RE: Ant 1.7.0 can't find Junit in ${user.home}/.ant/lib

2007-02-09 Thread Jacob Kjome
Hi Ben, Thanks for the tip! I will test this theory out when I get home. Indeed, my working directory is on a separate drive than junit.jar. Then again, I'm not sure this explains why it works when I put junit.jar into ${ant.home}/lib or why it always works for Ant-1.6.5 regardless of JDK vers

Re: Ant 1.7.0 can't find Junit in ${user.home}/.ant/lib

2007-02-09 Thread Peter Reilly
On 2/9/07, Burgess, Benjamin <[EMAIL PROTECTED]> wrote: Sounds like something I have seen before: http://sourceforge.net/tracker/index.php?func=detail&aid=1468822&group_i d=130558&atid=720017 Basically, java.net.URL.getFile() had a bug that would return an incorrect String if the file is not on

RE: using symlink on filesets

2007-02-09 Thread Tracy Jones
Never mind - it's my version of j9 that is the problem - not ant -Original Message- From: Tracy Jones Sent: Friday, February 09, 2007 11:18 AM To: Ant Users List Subject: Re: using symlink on filesets I am trying to create sym links in 1 directory for each file in another directory.

Re: using symlink on filesets

2007-02-09 Thread Tracy Jones
I am trying to create sym links in 1 directory for each file in another directory. I got this example from a previous posting, but so far am unable to make it work for me. The code is below - the problem I am having is that the sym link is being created in whatever directory I am in when I run th

RE: Python implementation for Ant

2007-02-09 Thread bill/wilandra
Hmmm, a basic tenet of Prolog is that the rules do not have any side effects. That is why Prolog can back track like it does. In a build process there are many side effects in creating, modifying, and copying/moving files. These side effects could become impossible to restore to their original stat

RE: Ant 1.7.0 can't find Junit in ${user.home}/.ant/lib

2007-02-09 Thread Burgess, Benjamin
Sounds like something I have seen before: http://sourceforge.net/tracker/index.php?func=detail&aid=1468822&group_i d=130558&atid=720017 Basically, java.net.URL.getFile() had a bug that would return an incorrect String if the file is not on the same windows drive letter as the working directory.

Re: Question about debug output

2007-02-09 Thread Matt Benson
I find it a little "funny" that the script is set up to use the JDT (aka Eclipse) compiler, and it dies when running in NetBeans. Perhaps the compiler implementation class really isn't present? Note that you can download the Eclipse compiler as a standalone jar; Google for "ecj jar" or something

Re: Ant 1.7.0 can't find Junit in ${user.home}/.ant/lib

2007-02-09 Thread Jacob Kjome
I am using Windows. And it works just fine with Ant-1.6.5 no matter the JDK. But under JDK1.3.1 with Ant-1.7.0, it fails (but works with JDK1.6). My user home is like any normal windows machine C:\Documents and Settings\jkjome\.ant\lib And when I copy junit.jar from my .ant/lib to ${ant.h

Question about debug output

2007-02-09 Thread Jon Rue
I'm having issues building with ant 1.6.5 integrated into the netbeans 5.5 ide. This is a project built outside the ide and has a very good build script that works just find from the command line. When i run the same script in the ide however it errors out with a lovely java.lang.NoClassDefFoun

RE: Re: Adding a year to tstamp date

2007-02-09 Thread cknell
Thanks, I just noticed the oversight of omitting the unit attribute. I solved the issue this way. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Joel Klein <[EMAIL PROTECTED]> Sent: Fri, 09 Feb 2007 08:57:11 -0600 To: Ant Users List

RE: Python implementation for Ant

2007-02-09 Thread Rick Genter
> -Original Message- > From: Steve Loughran [mailto:[EMAIL PROTECTED] > Sent: Friday, February 09, 2007 2:15 AM > To: Ant Users List > Subject: Re: Python implementation for Ant > > Now, I am not going to evangelise Prolog on everyone, but I > found some > things really nice about going

Re: Adding a year to tstamp date

2007-02-09 Thread Joel Klein
[EMAIL PROTECTED] wrote: But the offset isn't applied. When I ${current.fy} I get "2007". Can someone offer me a solution to this? Looks like you can specify the units for offset, so try setting unit to "year". The example from tstamp docs: -- Joel Klein

Re: Adding a year to tstamp date

2007-02-09 Thread Joel Klein
[EMAIL PROTECTED] wrote: But the offset isn't applied. When I ${current.fy} I get "2007". From the documentation example, it looks like the units of offset are in hours, intended to adjust for timezone. -- Joel Klein [Online at http://jfkbits.blogspot.com] --

Adding a year to tstamp date

2007-02-09 Thread cknell
I have a need to set the value of a property to the current fiscal year. For this purpose, that means that when running a build in October, November, or December, the value must be the current year +1. In any other month, the value is the same as the current year. I thought something like this

Re: Ant 1.6.5 and apt

2007-02-09 Thread Steve Loughran
Bernhard Wellhöfer wrote: Hello, Currently our company uses ant 1.6.5 and for some reason we can not upgrade to ant 1.7. Now I have to write an ant task that executes apt for a complete source tree. Who can help me here? How do I start apt (e.g. via the exec task) for a complete source tree

RE: dirset > get eldest | youngest dir ?

2007-02-09 Thread Rebhan, Gilbert
Hi, first think then write ;-) works with = including only the first level of subdirs Regards, Gilbert -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 11:52 AM To: user@ant.apache.org Subject: dirset > get

dirset > get eldest | youngest dir ?

2007-02-09 Thread Rebhan, Gilbert
Hi, how to get the eldest or youngest dir in a dirset ? the antcontrib task works only for filesets a test with a dirset : gave me : depends: [echo] \\foobar23\ftpserver\070209081530\bla but i want the dir ...\070209081530 only An

Ant 1.6.5 and apt

2007-02-09 Thread Bernhard Wellhöfer
Hello, Currently our company uses ant 1.6.5 and for some reason we can not upgrade to ant 1.7. Now I have to write an ant task that executes apt for a complete source tree. Who can help me here? How do I start apt (e.g. via the exec task) for a complete source tree with hundreds of Java sour

Re: Python implementation for Ant

2007-02-09 Thread Steve Loughran
Matt Benson wrote: Here's a link to Terence Parr's "Humans should not have to grok XML" article: http://www-128.ibm.com/developerworks/xml/library/x-sbxml.html In it he explains the distinction between XML as a data representation format, the use for which it was AFAIK intended, vs. as an expli

Re: Ant 1.7.0 can't find Junit in ${user.home}/.ant/lib

2007-02-09 Thread Peter Reilly
I have tested with JDK 1.3 and it works: ~/learning/a/junit> ant -debug Apache Ant version 1.7.0 compiled on December 13 2006 Buildfile: build.xml Adding reference: ant.PropertyHelper Detected Java version: 1.3 in: /usr/java/jdk1.3.1_18/jre Detected OS: Linux Adding reference: ant.ComponentHelper