--- Alec Fernandez <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> This is my first post to this list (predictably,
> it's a problem), but I'll try to give back now that
> I'm subscribed.  Please forgive and educate me on
> matters of etiquette.

You seem to be doing fine so far.  :)  Beyond
"etiquette" it's often requested that you check the
development version of a product just in case the bug
has already intentionally or inadvertently been fixed.
 This holds doubly true in the case of an exotic
operating system--I'm not aware of an Ant developer
with access to AIX.  :|  Further, <concat> has
experienced an unholy amount of tinkering since 1.7.0
was released and therefore may have accidentally been
modified in such a way as to sidestep the issue you're
having...

To turn this into a two-pronged attack, what is the
context of the alecfile in question, when it exists?

br,
Matt

> 
> I'm running the following script on AIX 5.2 with ant
> 1.7 but the same occurs with ant 1.6.5.  Java is
> 1.5.0 but also occurs with 1.4.2. The problem does
> not occur on Linux or Solaris.  (I'm resisting the
> urge to diss on a commercial OS)
> 
> <project name="Concat" basedir="." default="dist" >
>   <property name="temp.dir" value="/tmp/alec" />
>   <property name="alecfile"
> location="/tmp/alec/alec.src" />
>   <target name="dist">
>     <concat destfile="/tmp/alec/alec.txt"
> encoding="utf-8" fixlastline="yes" >
>       <fileset file="${alecfile}"/>
>     </concat>
>   </target>
> </project>
> 
> If the file alec.src does not exist, then all works
> as expected.  If the file does exist, you get the
> following trace:
> 
> sevr6401[41]$ ant -f alec.xml -debug
> Apache Ant version 1.7.0 compiled on December 13
> 2006
> Buildfile: alec.xml
> Adding reference: ant.PropertyHelper
> Detected Java version: 1.5 in:
> /data/install/sasasf/jre1.5/jre
> Detected OS: AIX
> Adding reference: ant.ComponentHelper
> Setting ro project property: ant.file ->
> /tmp/alec/alec.xml
> Adding reference: ant.projectHelper
> Adding reference: ant.parsing.context
> Adding reference: ant.targets
> parsing buildfile /tmp/alec/alec.xml with URI =
> file:/tmp/alec/alec.xml
> Setting ro project property: ant.project.name ->
> Concat
> Adding reference: Concat
> Setting ro project property: ant.file.Concat ->
> /tmp/alec/alec.xml
> Project base dir set to: /tmp/alec
>  +Target: 
>  +Target: dist
> [antlib:org.apache.tools.ant] Could not load
> definitions from resource
> org/apache/tools/ant/antlib.xml. It could not be
> found.
> Setting project property: temp.dir -> /tmp/alec
> Setting project property: alecfile ->
> /tmp/alec/alec.src
> Setting project property: alecfile2 ->
> /tmp/alec/alec.src2
> Attempting to create object of type
> org.apache.tools.ant.helper.DefaultExecutor
> Adding reference: ant.executor
> Build sequence for target(s) `dist' is [dist]
> Complete build sequence is [dist, ]
> 
> dist:
> fileset: Setup scanner in dir /tmp/alec with
> patternSet{ includes: [alec.src] excludes: [] }
> fileset: Setup scanner in dir /tmp/alec with
> patternSet{ includes: [alec.src2] excludes: [] }
>    [concat] Concating FileResource
> "/tmp/alec/alec.src"
> 
> BUILD FAILED
> /tmp/alec/alec.xml:7: Error while concatenating:
> null
>         at
>
org.apache.tools.ant.taskdefs.Concat.cat(Concat.java:570)
>         at
>
org.apache.tools.ant.taskdefs.Concat.execute(Concat.java:470)
>         at
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at
> java.lang.reflect.Method.invoke(Method.java:615)
>         at
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at
> org.apache.tools.ant.Task.perform(Task.java:348)
>         at
> org.apache.tools.ant.Target.execute(Target.java:357)
>         at
>
org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at
>
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at
>
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
>         at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: sun.io.MalformedInputException
>         at
>
sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262)
>         at
>
sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:314)
>         at
>
sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364)
>         at
>
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250)
>         at
>
java.io.InputStreamReader.read(InputStreamReader.java:212)
>         at
>
java.io.BufferedReader.read1(BufferedReader.java:206)
>         at
> java.io.BufferedReader.read(BufferedReader.java:282)
>         at
>
org.apache.tools.ant.taskdefs.Concat$MultiReader.read(Concat.java:830)
>         at
>
org.apache.tools.ant.taskdefs.Concat.concatenate(Concat.java:589)
>         at
>
org.apache.tools.ant.taskdefs.Concat.cat(Concat.java:555)
>         ... 18 more
> --- Nested Exception ---
> sun.io.MalformedInputException
>         at
>
sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262)
>         at
>
sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:314)
>         at
>
sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364)
>         at
>
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250)
>         at
>
java.io.InputStreamReader.read(InputStreamReader.java:212)
>         at
>
java.io.BufferedReader.read1(BufferedReader.java:206)
>         at
> java.io.BufferedReader.read(BufferedReader.java:282)
>         at
>
org.apache.tools.ant.taskdefs.Concat$MultiReader.read(Concat.java:830)
>         at
>
org.apache.tools.ant.taskdefs.Concat.concatenate(Concat.java:589)
>         at
>
org.apache.tools.ant.taskdefs.Concat.cat(Concat.java:555)
>         at
>
org.apache.tools.ant.taskdefs.Concat.execute(Concat.java:470)
>         at
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at
> java.lang.reflect.Method.invoke(Method.java:615)
>         at
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at
> org.apache.tools.ant.Task.perform(Task.java:348)
>         at
> org.apache.tools.ant.Target.execute(Target.java:357)
>         at
>
org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at
>
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at
>
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at
> org.apache.tools.ant.Main.startAnt(Main.java:199)
>         at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> 
> Total time: 0 seconds
> _______________________________________________
> "The only problem is with configuration." -- Brent
> Laster
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



       
____________________________________________________________________________________
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to