You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Laura Stewart <sc...@gmail.com> on 2006/07/27 18:58:32 UTC

Proper location of build.xml file

Hi - I am trying to work with ANT to generate output for Derby documentation.
I have ANT installed in this path:

C:\Authoring\Derby\apache-ant-1.6.5

When I run ant to build html output for the doc "ref" in a command
window, I get a message indicating that build.xml does not exist. I
presume that means that it is not in the proper path.  Where should it
be?  Do I need to copy it into my src directory?

C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
Buildfile: build.xml does not exist!
Build failed
C:\Authoring\Derby\Derby1057\trunk\src>

Thanks!

-- 
Laura Stewart

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Proper location of build.xml file

Posted by Martin Gainty <mg...@hotmail.com>.
Read and understand this
http://java.sun.com/docs/hotspot/VMOptions.html

by altering the configuration for your JVM_ARGS
run 
java -Xrunhprof on a normally running Java App > out1.lst

go to aberrant code
java -Xrunhprof abberantApp > out2.lst

Note the deltas between out1.lst and out2.lst on startup allocated mem, max memory allocated, stack allocation 

Always best to attenuate heap (-Xms and Xmx entries) in favour of stack (-Xss) allocations

M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Laura Stewart" <sc...@gmail.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Thursday, July 27, 2006 1:32 PM
Subject: Re: Proper location of build.xml file


> Correction, the message is:
> 
> BUILD FAILED
> C:\Authoring\Derby\Derby1057\trunk\build.xml:72: The following error
> occurred while executing this line:
> C:\Authoring\Derby\Derby1057\trunk\build.xml:93: The following error
> occurred while executing this line:
> java.lang.OutOfMemoryError: Java heap space
> 
> Total time: 56 seconds
> C:\Authoring\Derby\Derby1057\trunk>
> 
> 
> On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
>> Thanks. The build runs now but fails.  I get this message:
>>
>> BUILD FAILED
>> C:\Authoring\Derby\Derby1057\trunk\build.xml
>> ile executing this line:
>> C:\Authoring\Derby\Derby1057\trunk\build.xml
>> ile executing this line:
>> java.lang.OutOfMemoryError: Java heap space
>>
>> Any suggestions?
>> Laura
>>
>>
>> On 7/27/06, Dominique Devienne <dd...@gmail.com> wrote:
>> > the build is almost always at the top level of a project, in trunk in
>> > your case. Ant looks for build.xml in the current dir. Use -f
>> > path_to_build to find it in a different directory. --DD
>> >
>> > On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
>> > > Hi - I am trying to work with ANT to generate output for Derby documentation.
>> > > I have ANT installed in this path:
>> > >
>> > > C:\Authoring\Derby\apache-ant-1.6.5
>> > >
>> > > When I run ant to build html output for the doc "ref" in a command
>> > > window, I get a message indicating that build.xml does not exist. I
>> > > presume that means that it is not in the proper path.  Where should it
>> > > be?  Do I need to copy it into my src directory?
>> > >
>> > > C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
>> > > Buildfile: build.xml does not exist!
>> > > Build failed
>> > > C:\Authoring\Derby\Derby1057\trunk\src>
>> > >
>> > > Thanks!
>> > >
>> > > --
>> > > Laura Stewart
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> > > For additional commands, e-mail: user-help@ant.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> > For additional commands, e-mail: user-help@ant.apache.org
>> >
>> >
>>
>>
>> --
>> Laura Stewart
>>
> 
> 
> -- 
> Laura Stewart
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

Re: Proper location of build.xml file

Posted by pr...@POLARIS.CO.IN.
There was similar kind of problem sometime back .. I am just pasting the 
reply below just check if it works for you.

The only that comes in my  mind is that you can try increasing java
heap space. When you start your application that calls ant try
specifying this

java -Xms256m 

or try to allocate more memory.

By the way, what kind of stuff are you trying to build with ant, and
also you may consider updgrading to Ant 1.6.5.


Prashanth




"Laura Stewart" <sc...@gmail.com> 
07/27/2006 11:02 PM
Please respond to
"Ant Users List" <us...@ant.apache.org>


To
"Ant Users List" <us...@ant.apache.org>
cc

Subject
Re: Proper location of build.xml file






Correction, the message is:

BUILD FAILED
C:\Authoring\Derby\Derby1057\trunk\build.xml:72: The following error
occurred while executing this line:
C:\Authoring\Derby\Derby1057\trunk\build.xml:93: The following error
occurred while executing this line:
java.lang.OutOfMemoryError: Java heap space

Total time: 56 seconds
C:\Authoring\Derby\Derby1057\trunk>


On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> Thanks. The build runs now but fails.  I get this message:
>
> BUILD FAILED
> C:\Authoring\Derby\Derby1057\trunk\build.xml
> ile executing this line:
> C:\Authoring\Derby\Derby1057\trunk\build.xml
> ile executing this line:
> java.lang.OutOfMemoryError: Java heap space
>
> Any suggestions?
> Laura
>
>
> On 7/27/06, Dominique Devienne <dd...@gmail.com> wrote:
> > the build is almost always at the top level of a project, in trunk in
> > your case. Ant looks for build.xml in the current dir. Use -f
> > path_to_build to find it in a different directory. --DD
> >
> > On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> > > Hi - I am trying to work with ANT to generate output for Derby 
documentation.
> > > I have ANT installed in this path:
> > >
> > > C:\Authoring\Derby\apache-ant-1.6.5
> > >
> > > When I run ant to build html output for the doc "ref" in a command
> > > window, I get a message indicating that build.xml does not exist. I
> > > presume that means that it is not in the proper path.  Where should 
it
> > > be?  Do I need to copy it into my src directory?
> > >
> > > C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> > > Buildfile: build.xml does not exist!
> > > Build failed
> > > C:\Authoring\Derby\Derby1057\trunk\src>
> > >
> > > Thanks!
> > >
> > > --
> > > Laura Stewart
> > >
> > > 
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
>
> --
> Laura Stewart
>


-- 
Laura Stewart

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in

RE: Proper location of build.xml file

Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Your JVM ran out of memory. Hard to say why whithout seeing the
build.xml.

-Rob A 

> -----Original Message-----
> From: Laura Stewart [mailto:scotsmatrix@gmail.com] 
> Sent: Thursday, July 27, 2006 10:33 AM
> To: Ant Users List
> Subject: Re: Proper location of build.xml file
> 
> Correction, the message is:
> 
> BUILD FAILED
> C:\Authoring\Derby\Derby1057\trunk\build.xml:72: The 
> following error occurred while executing this line:
> C:\Authoring\Derby\Derby1057\trunk\build.xml:93: The 
> following error occurred while executing this line:
> java.lang.OutOfMemoryError: Java heap space
> 
> Total time: 56 seconds
> C:\Authoring\Derby\Derby1057\trunk>
> 
> 
> On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> > Thanks. The build runs now but fails.  I get this message:
> >
> > BUILD FAILED
> > C:\Authoring\Derby\Derby1057\trunk\build.xml
> > ile executing this line:
> > C:\Authoring\Derby\Derby1057\trunk\build.xml
> > ile executing this line:
> > java.lang.OutOfMemoryError: Java heap space
> >
> > Any suggestions?
> > Laura
> >
> >
> > On 7/27/06, Dominique Devienne <dd...@gmail.com> wrote:
> > > the build is almost always at the top level of a project, 
> in trunk 
> > > in your case. Ant looks for build.xml in the current dir. Use -f 
> > > path_to_build to find it in a different directory. --DD
> > >
> > > On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> > > > Hi - I am trying to work with ANT to generate output 
> for Derby documentation.
> > > > I have ANT installed in this path:
> > > >
> > > > C:\Authoring\Derby\apache-ant-1.6.5
> > > >
> > > > When I run ant to build html output for the doc "ref" 
> in a command 
> > > > window, I get a message indicating that build.xml does 
> not exist. 
> > > > I presume that means that it is not in the proper path.  Where 
> > > > should it be?  Do I need to copy it into my src directory?
> > > >
> > > > C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> > > > Buildfile: build.xml does not exist!
> > > > Build failed
> > > > C:\Authoring\Derby\Derby1057\trunk\src>
> > > >
> > > > Thanks!
> > > >
> > > > --
> > > > Laura Stewart
> > > >
> > > > 
> ------------------------------------------------------------------
> > > > --- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> > > > additional commands, e-mail: user-help@ant.apache.org
> > > >
> > > >
> > >
> > > 
> --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> > > additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
> >
> > --
> > Laura Stewart
> >
> 
> 
> --
> Laura Stewart
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Proper location of build.xml file

Posted by Laura Stewart <sc...@gmail.com>.
Correction, the message is:

BUILD FAILED
C:\Authoring\Derby\Derby1057\trunk\build.xml:72: The following error
occurred while executing this line:
C:\Authoring\Derby\Derby1057\trunk\build.xml:93: The following error
occurred while executing this line:
java.lang.OutOfMemoryError: Java heap space

Total time: 56 seconds
C:\Authoring\Derby\Derby1057\trunk>


On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> Thanks. The build runs now but fails.  I get this message:
>
> BUILD FAILED
> C:\Authoring\Derby\Derby1057\trunk\build.xml
> ile executing this line:
> C:\Authoring\Derby\Derby1057\trunk\build.xml
> ile executing this line:
> java.lang.OutOfMemoryError: Java heap space
>
> Any suggestions?
> Laura
>
>
> On 7/27/06, Dominique Devienne <dd...@gmail.com> wrote:
> > the build is almost always at the top level of a project, in trunk in
> > your case. Ant looks for build.xml in the current dir. Use -f
> > path_to_build to find it in a different directory. --DD
> >
> > On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> > > Hi - I am trying to work with ANT to generate output for Derby documentation.
> > > I have ANT installed in this path:
> > >
> > > C:\Authoring\Derby\apache-ant-1.6.5
> > >
> > > When I run ant to build html output for the doc "ref" in a command
> > > window, I get a message indicating that build.xml does not exist. I
> > > presume that means that it is not in the proper path.  Where should it
> > > be?  Do I need to copy it into my src directory?
> > >
> > > C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> > > Buildfile: build.xml does not exist!
> > > Build failed
> > > C:\Authoring\Derby\Derby1057\trunk\src>
> > >
> > > Thanks!
> > >
> > > --
> > > Laura Stewart
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
>
> --
> Laura Stewart
>


-- 
Laura Stewart

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Proper location of build.xml file

Posted by Laura Stewart <sc...@gmail.com>.
Thanks. The build runs now but fails.  I get this message:

BUILD FAILED
C:\Authoring\Derby\Derby1057\trunk\build.xml
ile executing this line:
C:\Authoring\Derby\Derby1057\trunk\build.xml
ile executing this line:
java.lang.OutOfMemoryError: Java heap space

Any suggestions?
Laura


On 7/27/06, Dominique Devienne <dd...@gmail.com> wrote:
> the build is almost always at the top level of a project, in trunk in
> your case. Ant looks for build.xml in the current dir. Use -f
> path_to_build to find it in a different directory. --DD
>
> On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> > Hi - I am trying to work with ANT to generate output for Derby documentation.
> > I have ANT installed in this path:
> >
> > C:\Authoring\Derby\apache-ant-1.6.5
> >
> > When I run ant to build html output for the doc "ref" in a command
> > window, I get a message indicating that build.xml does not exist. I
> > presume that means that it is not in the proper path.  Where should it
> > be?  Do I need to copy it into my src directory?
> >
> > C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> > Buildfile: build.xml does not exist!
> > Build failed
> > C:\Authoring\Derby\Derby1057\trunk\src>
> >
> > Thanks!
> >
> > --
> > Laura Stewart
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Laura Stewart

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Proper location of build.xml file

Posted by Dominique Devienne <dd...@gmail.com>.
the build is almost always at the top level of a project, in trunk in
your case. Ant looks for build.xml in the current dir. Use -f
path_to_build to find it in a different directory. --DD

On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
> Hi - I am trying to work with ANT to generate output for Derby documentation.
> I have ANT installed in this path:
>
> C:\Authoring\Derby\apache-ant-1.6.5
>
> When I run ant to build html output for the doc "ref" in a command
> window, I get a message indicating that build.xml does not exist. I
> presume that means that it is not in the proper path.  Where should it
> be?  Do I need to copy it into my src directory?
>
> C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> Buildfile: build.xml does not exist!
> Build failed
> C:\Authoring\Derby\Derby1057\trunk\src>
>
> Thanks!
>
> --
> Laura Stewart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Proper location of build.xml file

Posted by glenn opdycke-hansen <gl...@gmail.com>.
I would specify a smaller ms, perhaps
ANT_OPTS="-Xms256m -Xmx512m"
If it is a short build then that would not matter.
If the build takes a lot of time and memory, it is worth considering.
--glenn

On 7/27/06, Laura Stewart <sc...@gmail.com> wrote:
>
> Thanks everyone. By placing the build.xml file in my trunk folder and
> setting
> ANT_OPTS="-Xms512m -Xmx512m"  my problem was resolved.
>
> Appreciate all of the help!
> Laura
>
> On 7/27/06, Martin Gainty <mg...@hotmail.com> wrote:
> > plave the build.xml in your current folder
> > M-
> > *********************************************************************
> > This email message and any files transmitted with it contain
> confidential
> > information intended only for the person(s) to whom this email message
> is
> > addressed.  If you have received this email message in error, please
> notify
> > the sender immediately by telephone or email and destroy the original
> > message without making a copy.  Thank you.
> >
> >
> >
> > ----- Original Message -----
> > From: "Laura Stewart" <sc...@gmail.com>
> > To: <us...@ant.apache.org>
> > Sent: Thursday, July 27, 2006 12:58 PM
> > Subject: Proper location of build.xml file
> >
> >
> > > Hi - I am trying to work with ANT to generate output for Derby
> documentation.
> > > I have ANT installed in this path:
> > >
> > > C:\Authoring\Derby\apache-ant-1.6.5
> > >
> > > When I run ant to build html output for the doc "ref" in a command
> > > window, I get a message indicating that build.xml does not exist. I
> > > presume that means that it is not in the proper path.  Where should it
> > > be?  Do I need to copy it into my src directory?
> > >
> > > C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> > > Buildfile: build.xml does not exist!
> > > Build failed
> > > C:\Authoring\Derby\Derby1057\trunk\src>
> > >
> > > Thanks!
> > >
> > > --
> > > Laura Stewart
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
>
>
> --
> Laura Stewart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: Proper location of build.xml file

Posted by Laura Stewart <sc...@gmail.com>.
Thanks everyone. By placing the build.xml file in my trunk folder and setting
ANT_OPTS="-Xms512m -Xmx512m"  my problem was resolved.

Appreciate all of the help!
Laura

On 7/27/06, Martin Gainty <mg...@hotmail.com> wrote:
> plave the build.xml in your current folder
> M-
> *********************************************************************
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
>
>
> ----- Original Message -----
> From: "Laura Stewart" <sc...@gmail.com>
> To: <us...@ant.apache.org>
> Sent: Thursday, July 27, 2006 12:58 PM
> Subject: Proper location of build.xml file
>
>
> > Hi - I am trying to work with ANT to generate output for Derby documentation.
> > I have ANT installed in this path:
> >
> > C:\Authoring\Derby\apache-ant-1.6.5
> >
> > When I run ant to build html output for the doc "ref" in a command
> > window, I get a message indicating that build.xml does not exist. I
> > presume that means that it is not in the proper path.  Where should it
> > be?  Do I need to copy it into my src directory?
> >
> > C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> > Buildfile: build.xml does not exist!
> > Build failed
> > C:\Authoring\Derby\Derby1057\trunk\src>
> >
> > Thanks!
> >
> > --
> > Laura Stewart
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >


-- 
Laura Stewart

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Proper location of build.xml file

Posted by Martin Gainty <mg...@hotmail.com>.
plave the build.xml in your current folder 
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Laura Stewart" <sc...@gmail.com>
To: <us...@ant.apache.org>
Sent: Thursday, July 27, 2006 12:58 PM
Subject: Proper location of build.xml file


> Hi - I am trying to work with ANT to generate output for Derby documentation.
> I have ANT installed in this path:
> 
> C:\Authoring\Derby\apache-ant-1.6.5
> 
> When I run ant to build html output for the doc "ref" in a command
> window, I get a message indicating that build.xml does not exist. I
> presume that means that it is not in the proper path.  Where should it
> be?  Do I need to copy it into my src directory?
> 
> C:\Authoring\Derby\Derby1057\trunk\src>ant html.ref
> Buildfile: build.xml does not exist!
> Build failed
> C:\Authoring\Derby\Derby1057\trunk\src>
> 
> Thanks!
> 
> -- 
> Laura Stewart
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>