You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Gregor N. Purdy" <gr...@focusresearch.com> on 2001/07/11 17:12:50 UTC

Can't build fop: Hangs after "Starting Ant..."

Its been some time since I've been able to build fop from CVS. I just
completed a fresh checkout of xml-fop and when I run ./build.sh, the
thing just hangs after printing "Starting Ant...".

Has anyone else run into this? Is it solved? I'd like to get back to
using FOP for some of my projects, and I'd prefer to track the
development rather than go back to an older release.


Regards,

-- Gregor
 _____________________________________________________________________ 
/                                                                     \
   Gregor N. Purdy                          gregor@focusresearch.com
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by "Gregor N. Purdy" <gr...@focusresearch.com>.
It was hung, so the time is the time I let it stay hung until
Ctrl+C.


On 22 Jul 2001 09:39:54 +1000, Peter B. West wrote:
> Gregor,
> 
> I don't know ant all that well, but here is what happens when I do it:
> 
> /tmp  9:35$ ant
> Buildfile: build.xml
> 
> testCRLF:
> 
> BUILD SUCCESSFUL
> 
> Total time: 1 second
> /tmp  9:35$
> 
> I don't know whether there are properties you can have set which 
> suppress the normal output of ant, but I suspect you should be seeing 
> the same sort of output.
> 
> Is that "real" time real?
> 
> Change the value of "cr" from "remove" to "add" and see if the file is 
> modified.
> 
> Peter
> 
> Gregor N. Purdy wrote:
> 
> > On 20 Jul 2001 12:56:29 +1000, Peter B. West wrote:
> > 
> >>If you haven't written one already, you might try the attached 
> >>build.xml.  Drop it in /tmp, copy some text file over as 
> >>/tmp/YourTextFile (or edit the "includes" value in build.xml, and run 
> >>ant.  The text file will be modified in place.
> >>
> > 
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> >>
> > --
> > 
> > I've attached a typescript file of an attempt.
> > ------------------------------------------------------------------------
> > 
> > Script started on Fri Jul 20 09:21:06 2001
> > [gregor@sarek ant-test]$ cat build.xml
> > <?xml version="1.0"?>
> > 
> > <project default="testCRLF" basedir=".">
> >   <taskdef name="fixcrlf"
> >            classname="org.apache.tools.ant.taskdefs.FixCRLF"/>
> >   <target name="testCRLF">
> >     <fixcrlf srcdir="."
> > 		   includes="YourTextFile"
> > 		   tab="remove"
> > 	     cr="remove"
> > 		   eof="remove"
> > 		   />
> >   </target>
> > 
> > </project>
> > 
> > [gregor@sarek ant-test]$ cat YourTextFile
> > <?xml version="1.0"?>
> > 
> > <project default="testCRLF" basedir=".">
> >   <taskdef name="fixcrlf"
> >            classname="org.apache.tools.ant.taskdefs.FixCRLF"/>
> >   <target name="testCRLF">
> >     <fixcrlf srcdir="."
> > 		   includes="YourTextFile"
> > 		   tab="remove"
> > 	     cr="remove"
> > 		   eof="remove"
> > 		   />
> >   </target>
> > 
> > </project>
> > 
> > [gregor@sarek ant-test]$ time ant
> > 
> > 
> > real	37m19.108s
> > user	0m0.270s
> > sys	0m0.120s
> > [gregor@sarek ant-test]$ ls
> > build.xml  typescript  YourTextFile
> > [gregor@sarek ant-test]$ exit
> > exit
> > 
> > Script done on Fri Jul 20 09:58:45 2001
> > 
> > typescript
> > 
> > Content-Type:
> > 
> > text/plain
> > Content-Encoding:
> > 
> > 7bit
> > 
> > 
> 
> 
> -- 
> Peter B. West  pbwest@powerup.com.au  http://powerup.com.au/~pbwest
> "Lord, to whom shall we go?"
> 
> 
--


Regards,

-- Gregor
 _____________________________________________________________________ 
/                                                                     \
   Gregor N. Purdy                          gregor@focusresearch.com
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by "Peter B. West" <pb...@powerup.com.au>.
Gregor,

I don't know ant all that well, but here is what happens when I do it:

/tmp  9:35$ ant
Buildfile: build.xml

testCRLF:

BUILD SUCCESSFUL

Total time: 1 second
/tmp  9:35$

I don't know whether there are properties you can have set which 
suppress the normal output of ant, but I suspect you should be seeing 
the same sort of output.

Is that "real" time real?

Change the value of "cr" from "remove" to "add" and see if the file is 
modified.

Peter

Gregor N. Purdy wrote:

> On 20 Jul 2001 12:56:29 +1000, Peter B. West wrote:
> 
>>If you haven't written one already, you might try the attached 
>>build.xml.  Drop it in /tmp, copy some text file over as 
>>/tmp/YourTextFile (or edit the "includes" value in build.xml, and run 
>>ant.  The text file will be modified in place.
>>
> 
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>>
> --
> 
> I've attached a typescript file of an attempt.
> ------------------------------------------------------------------------
> 
> Script started on Fri Jul 20 09:21:06 2001
> [gregor@sarek ant-test]$ cat build.xml
> <?xml version="1.0"?>
> 
> <project default="testCRLF" basedir=".">
>   <taskdef name="fixcrlf"
>            classname="org.apache.tools.ant.taskdefs.FixCRLF"/>
>   <target name="testCRLF">
>     <fixcrlf srcdir="."
> 		   includes="YourTextFile"
> 		   tab="remove"
> 	     cr="remove"
> 		   eof="remove"
> 		   />
>   </target>
> 
> </project>
> 
> [gregor@sarek ant-test]$ cat YourTextFile
> <?xml version="1.0"?>
> 
> <project default="testCRLF" basedir=".">
>   <taskdef name="fixcrlf"
>            classname="org.apache.tools.ant.taskdefs.FixCRLF"/>
>   <target name="testCRLF">
>     <fixcrlf srcdir="."
> 		   includes="YourTextFile"
> 		   tab="remove"
> 	     cr="remove"
> 		   eof="remove"
> 		   />
>   </target>
> 
> </project>
> 
> [gregor@sarek ant-test]$ time ant
> 
> 
> real	37m19.108s
> user	0m0.270s
> sys	0m0.120s
> [gregor@sarek ant-test]$ ls
> build.xml  typescript  YourTextFile
> [gregor@sarek ant-test]$ exit
> exit
> 
> Script done on Fri Jul 20 09:58:45 2001
> 
> typescript
> 
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> 7bit
> 
> 


-- 
Peter B. West  pbwest@powerup.com.au  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by "Gregor N. Purdy" <gr...@focusresearch.com>.
On 20 Jul 2001 12:56:29 +1000, Peter B. West wrote:
> If you haven't written one already, you might try the attached 
> build.xml.  Drop it in /tmp, copy some text file over as 
> /tmp/YourTextFile (or edit the "includes" value in build.xml, and run 
> ant.  The text file will be modified in place.

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
--

I've attached a typescript file of an attempt.

Regards,

-- Gregor
 _____________________________________________________________________ 
/                                                                     \
   Gregor N. Purdy                          gregor@focusresearch.com
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/

Re: Can't build fop: Hangs after "Starting Ant..."

Posted by "Peter B. West" <pb...@powerup.com.au>.
Gregor,

If you haven't written one already, you might try the attached 
build.xml.  Drop it in /tmp, copy some text file over as 
/tmp/YourTextFile (or edit the "includes" value in build.xml, and run 
ant.  The text file will be modified in place.

Peter

Arved Sandstrom wrote:

> At 11:34 AM 7/19/01 -0400, Gregor N. Purdy wrote:
> 
>>>Can you run your current Ant on other build files?
>>>
>>I don't use Ant for anything else.
>>
> 
> Well, just a little trial one, one single super-simple target...just to 
> eliminate Ant itself as being problematic.
> 
> 
>>>What version of Ant are you using? Try Ant 1.3 if all else fails.
>>>
>>I just installed the 1.3-2 RPMs for Ant from jakarta.apache.org,
>>but it seems to me from build.sh that a private version of ant.jar is
>>used...
>>
> 
> Hmmm, we're talking about UNIX and strange lack of evidence...permissions on 
> directories?
> 
> Regards,
> Arved
> 
> Fairly Senior Software Type
> e-plicity (http://www.e-plicity.com)
> Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> 
> 


-- 
Peter B. West  pbwest@powerup.com.au  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"

Re: Can't build fop: Hangs after "Starting Ant..."

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
At 11:34 AM 7/19/01 -0400, Gregor N. Purdy wrote:
>> Can you run your current Ant on other build files?
>
>I don't use Ant for anything else.

Well, just a little trial one, one single super-simple target...just to 
eliminate Ant itself as being problematic.

>> What version of Ant are you using? Try Ant 1.3 if all else fails.
>
>I just installed the 1.3-2 RPMs for Ant from jakarta.apache.org,
>but it seems to me from build.sh that a private version of ant.jar is
>used...

Hmmm, we're talking about UNIX and strange lack of evidence...permissions on 
directories?

Regards,
Arved

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by Elliotte Rusty Harold <el...@metalab.unc.edu>.
At 8:51 PM -0300 7/18/01, Arved Sandstrom wrote:
>At 04:34 PM 7/18/01 -0400, Gregor N. Purdy wrote:
>>All --
>>
>>On 11 Jul 2001 11:12:50 -0400, Gregor N. Purdy wrote:
>>> Its been some time since I've been able to build fop from CVS. I just
>>> completed a fresh checkout of xml-fop and when I run ./build.sh, the
>>> thing just hangs after printing "Starting Ant...".
>>> 

I haven't seen this specific problem, but I've had a lot of other problems lately building both FOP, other Apache tools like Xerces-J, and non-Apache stuff like JDOM. Invariably the solution is to take everything out of my jre/lib/ext directory and then build. I can put it all back after the build is finished. 

The interdependencies between the various XML tools are getting really nasty. It might be time to figure out if there's some way to better handle this, though I'm afraid the solution might lie more with changing Java than with changing ANT. Wherever the solution lies, the constant version conflicts between different Apache tools is getting extremely burdensome. I suspect all the projects need to do more testing against all the other projects since they all keep breaking each other. 
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by "Gregor N. Purdy" <gr...@focusresearch.com>.
Arved --
Thanks for the reply.

> Could it be a line-ending issue? This has bitten us a few times, depending 
> on what machine a committer was on when they committed UNIX shell scripts, 
> and if they weren't careful. I did it a time or two myself, committing the 
> shell scripts with DOS line endings.
build.sh appears to be in proper *nix format.

> Failing that, what happens when you set the environment variables by hand, 
> and then execute the final command by itself, not through the script...still 
> no joy?
No joy.

> Can you run your current Ant on other build files?

I don't use Ant for anything else.

> What version of Ant are you using? Try Ant 1.3 if all else fails.

I just installed the 1.3-2 RPMs for Ant from jakarta.apache.org,
but it seems to me from build.sh that a private version of ant.jar is
used...

--


Regards,

-- Gregor
 _____________________________________________________________________ 
/                                                                     \
   Gregor N. Purdy                          gregor@focusresearch.com
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
At 04:34 PM 7/18/01 -0400, Gregor N. Purdy wrote:
>All --
>
>On 11 Jul 2001 11:12:50 -0400, Gregor N. Purdy wrote:
>> Its been some time since I've been able to build fop from CVS. I just
>> completed a fresh checkout of xml-fop and when I run ./build.sh, the
>> thing just hangs after printing "Starting Ant...".
>> 
>> Has anyone else run into this? Is it solved? I'd like to get back to
>> using FOP for some of my projects, and I'd prefer to track the
>> development rather than go back to an older release.
>
>My apologies if someone dealt with this and I didn't see it. I still
>cannot build fop out of CVS. I just did a CVS update, too.
>
>I can't figure out why Ant would hang, and I thought fop was self-
>contained, so whatever I'm running should be whatever you all are
>running, but I assume you are all able to build fop.
>
>Does anyone have any idea what I could look at to try to resolve
>the problem? I'd really like to get back to producing PDF files...

Hi, Gregor

Well, let's try and troubleshoot this through. I recall having had identical 
hangs last year; I wish I could remember why. :-)

Could it be a line-ending issue? This has bitten us a few times, depending 
on what machine a committer was on when they committed UNIX shell scripts, 
and if they weren't careful. I did it a time or two myself, committing the 
shell scripts with DOS line endings.

Failing that, what happens when you set the environment variables by hand, 
and then execute the final command by itself, not through the script...still 
no joy?

Can you run your current Ant on other build files?

What version of Ant are you using? Try Ant 1.3 if all else fails.

Just some starter ideas. I'm sure we'll get to the solution sooner or later.

Regards,
Arved Sandstrom

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by "Gregor N. Purdy" <gr...@focusresearch.com>.
Karen --

Thanks for the ideas. Still no success. I'm attaching a typescript file
and build.sh. I figure whatever is going on has got to be something
very foundational but probably very simple once found. I'm puzzled by
the fact that fop has its own private copy of ant, etc. and that it
is set up to use its own private tools, yet doesn't work here while
working there.

I wonder if Java itself is broken.

I don't do a lot with Java on my own, so if there are some simple
checks you could guide me through to see that I'm not getting breakage
at that level, I'd appreciate it.

> 
--


Regards,

-- Gregor
 _____________________________________________________________________ 
/                                                                     \
   Gregor N. Purdy                          gregor@focusresearch.com
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by Karen Lease <kl...@club-internet.fr>.
Hi Gregor,

If you are still stuck, I have a few more ideas of things to try. 
./build.sh -version
Ant should print out its version number
(I get: Ant version 1.3 compiled on March 2 2001)

If you still get nothing, try running ant from the command line directly
(from the same directory where you have your build.sh) :
java -classpath lib/ant.jar org.apache.tools.ant.Main -version

and see if you get anything.
If the second works and the first doesn't, there's something amiss with
your build.sh file. Perhaps you could attach it to your next mail. I
tend to think the problem is in your build.sh and not your build.xml.

If you get ant to print its version number, then at least it is starting
up. In that case, try using the -verbose
switch which should print out lots of stuff, starting with the version,
the build file name, the java version, the OS ....

Good luck,
Karen

"Gregor N. Purdy" wrote:
> 
> All --
> 
> On 11 Jul 2001 11:12:50 -0400, Gregor N. Purdy wrote:
> > Its been some time since I've been able to build fop from CVS. I just
> > completed a fresh checkout of xml-fop and when I run ./build.sh, the
> > thing just hangs after printing "Starting Ant...".

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Can't build fop: Hangs after "Starting Ant..."

Posted by "Gregor N. Purdy" <gr...@focusresearch.com>.
All --

On 11 Jul 2001 11:12:50 -0400, Gregor N. Purdy wrote:
> Its been some time since I've been able to build fop from CVS. I just
> completed a fresh checkout of xml-fop and when I run ./build.sh, the
> thing just hangs after printing "Starting Ant...".
> 
> Has anyone else run into this? Is it solved? I'd like to get back to
> using FOP for some of my projects, and I'd prefer to track the
> development rather than go back to an older release.

My apologies if someone dealt with this and I didn't see it. I still
cannot build fop out of CVS. I just did a CVS update, too.

I can't figure out why Ant would hang, and I thought fop was self-
contained, so whatever I'm running should be whatever you all are
running, but I assume you are all able to build fop.

Does anyone have any idea what I could look at to try to resolve
the problem? I'd really like to get back to producing PDF files...


Thanks!



Regards,

-- Gregor
 _____________________________________________________________________ 
/                                                                     \
   Gregor N. Purdy                          gregor@focusresearch.com
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org