You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ernst de Haan <er...@jollem.com> on 2000/05/17 19:13:41 UTC

Weerd behaviour for Ant

Hi,

I'm new with Ant (since yesterday), and I have this tiny little project
that I test Ant with. Or at least, I tried. But it seems there is a
problem with the mkdir task. I have attached the whole directory as a
.tar.gz (very small, hope you dont mind), and I've attached a file that
shows what I type in, what happens, and what goes wrong.

As you can see the first time it's okay, but the second time something
unexplainable happens. Weird characters are printed to the screen and a
directory with a very strange name is created.

This reminds me of the `good old days' with ANSI C: Dangling pointers,
endless character strings, etc :)

My system:
OS:  FreeBSD 3.4-STABLE
JDK: Blackdown JDK 1.2.2 rc3 for Linux (with Linux emulation)
PC:  Pentium2-412, 128 MB


Ernst

--
Ernst de Haan
Freelance Java Architect

"Come to me all who are weary and burdened,
and I will give you rest" -- Jesus Christ

Re: Weerd behaviour for Ant

Posted by Ernst de Haan <er...@jollem.com>.
I wrote:
> I recompiled Ant, tried to figure out where the error came from, and found
> out the problem disappeared when I converted default.properties (in
> ant/taskdefs) from DOS-style (CRLF) to UNIX-style (LF).

Uhm, false alarm. Or no, the alarm should still be active :)

I tried it again, and now it fails again. This problem does not occur
every time /:|

I have used the -verbose option and re-executed ant. The result has been
attached as ant-output. Hope some1 can shed some light on this issue :)

> I must say the code looks very nice :)
> 
> Ernst
> 

--
Ernst de Haan
Freelance Java Architect

"Come to me all who are weary and burdened,
and I will give you rest" -- Jesus Christ

Re: Weerd behaviour for Ant

Posted by Ernst de Haan <er...@jollem.com>.
Hmm, I guess this may be causing all this trouble:

> Setting project property: user.dir -> ;�
> (^��������j
> XV�

Ernst

--
Ernst de Haan
Freelance Java Architect

"Come to me all who are weary and burdened,
and I will give you rest" -- Jesus Christ

Re: Weerd behaviour for Ant

Posted by Ernst de Haan <er...@jollem.com>.
I wrote:
> I recompiled Ant, tried to figure out where the error came from, and found
> out the problem disappeared when I converted default.properties (in
> ant/taskdefs) from DOS-style (CRLF) to UNIX-style (LF).

Uhm, false alarm. Or no, the alarm should still be active :)

I tried it again, and now it fails again. This problem does not occur
every time /:|

I have used the -verbose option and re-executed ant. The result has been
attached as ant-output. Hope some1 can shed some light on this issue :)

> I must say the code looks very nice :)
> 
> Ernst
> 

--
Ernst de Haan
Freelance Java Architect

"Come to me all who are weary and burdened,
and I will give you rest" -- Jesus Christ

Re: Weerd behaviour for Ant

Posted by Ernst de Haan <er...@jollem.com>.
Hi,


I recompiled Ant, tried to figure out where the error came from, and found
out the problem disappeared when I converted default.properties (in
ant/taskdefs) from DOS-style (CRLF) to UNIX-style (LF).

I must say the code looks very nice :)


Ernst


Ernst de Haan wrote:
> 
> Hi,
> 
> I'm new with Ant (since yesterday), and I have this tiny little project
> that I test Ant with. Or at least, I tried. But it seems there is a
> problem with the mkdir task. I have attached the whole directory as a
> .tar.gz (very small, hope you dont mind), and I've attached a file that
> shows what I type in, what happens, and what goes wrong.
> 
> As you can see the first time it's okay, but the second time something
> unexplainable happens. Weird characters are printed to the screen and a
> directory with a very strange name is created.
> 
> This reminds me of the `good old days' with ANSI C: Dangling pointers,
> endless character strings, etc :)
> 
> My system:
> OS:  FreeBSD 3.4-STABLE
> JDK: Blackdown JDK 1.2.2 rc3 for Linux (with Linux emulation)
> PC:  Pentium2-412, 128 MB
> 
> Ernst
> 
> --
> Ernst de Haan
> Freelance Java Architect
> 
> "Come to me all who are weary and burdened,
> and I will give you rest" -- Jesus Christ
> 
>   --------------------------------------------------------------------------
>                 Name: files.tgz
>    files.tgz    Type: unspecified type (application/octet-stream)
>             Encoding: base64
> 
>   --------------------------------------------------------------------------
> bash-2.03$ tar zxvf ../files.tgz
> build.xml
> src/java/hello/ejb/CVS/
> src/java/hello/ejb/CVS/Root
> src/java/hello/ejb/CVS/Repository
> src/java/hello/ejb/CVS/Entries
> src/java/hello/ejb/Hello.java
> src/java/hello/ejb/HelloBean.java
> src/java/hello/ejb/HelloHome.java
> bash-2.03$ ant
> Buildfile: build.xml
> Project base dir set to: /usr/home/ernst/tmp/files
> Executing Target: init
> Executing Target: prepare
> Created dir: /usr/home/ernst/tmp/files/lib
> Created dir: /usr/home/ernst/tmp/files/lib/ejb
> Created dir: /usr/home/ernst/tmp/files/lib/web
> Executing Target: ejb-classes
> Compiling 3 source files to /usr/home/ernst/tmp/files/lib/ejb
> Completed in 2 seconds
> bash-2.03$ rm -Rf lib
> bash-2.03$ ant
> Buildfile: build.xml
> (^�������~ke dir set to: ;�                                                    �
> �
> Executing Target: init
> Executing Target: prepare
> (^�������~k: ;�                                                                �
> (^�������~k                                                                    �
> (^�������~k                                                                    �
> (^�������~k                                                                    �
> /lib
> (^�������~k: ;�                                                                �
> (^�������~k                                                                    �
> (^�������~k                                                                    �
> (^�������~k                                                                    �
> /lib/ejb
> (^�������~k: ;�                                                                �
> (^�������~k                                                                    �
> (^�������~k                                                                    �
> (^�������~k                                                                    �
> /lib/web
> Executing Target: ejb-classes
> BUILD FATAL ERROR: srcdir does not exist!
> bash-2.03$ ls
> ;??(?????????k???W??????        src
> build.xml
> bash-2.03$

--
Ernst de Haan
Freelance Java Architect

"Come to me all who are weary and burdened,
and I will give you rest" -- Jesus Christ