Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Ant script stalls
Ant script stalls [message #148386] Fri, 12 March 2004 20:44 Go to next message
Greg A Seguin is currently offline Greg A SeguinFriend
Messages: 28
Registered: July 2009
Junior Member
I'm using Eclipse 2 and Eclipse 3 (Tried M7 and M6, current=M6).
I have a simple build.xml file which simply seems to stall in the console.

In Eclipse 2, it gives me the following output:

--
Buildfile: c:\eclipse\workspace\SurveyApp\build.xml

Copy JSPs to Root:
[copydir] DEPRECATED - The copydir task is deprecated. Use copy
instead.
BUILD SUCCESSFUL
Total time: 781 milliseconds
--

In Eclipse 3, There is a new Console instance created each time I launch,
but nothing gets printed out, it just stays there for hours. I can
terminate the console, but I still can't "build".

I looked at the \workspace\.metadata\.log file and did not see any note
about ant. Is there something I'm missing? Which log file should I be
looking at?
Re: Ant script stalls [message #148402 is a reply to message #148386] Fri, 12 March 2004 21:19 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Can you provide the build file either here or in a bug report?

Darins

"GaS" <gaseguin@cyberus.ca> wrote in message
news:c2t7fv$3qe$1@eclipse.org...
> I'm using Eclipse 2 and Eclipse 3 (Tried M7 and M6, current=M6).
> I have a simple build.xml file which simply seems to stall in the console.
>
> In Eclipse 2, it gives me the following output:
>
> --
> Buildfile: c:\eclipse\workspace\SurveyApp\build.xml
>
> Copy JSPs to Root:
> [copydir] DEPRECATED - The copydir task is deprecated. Use copy
> instead.
> BUILD SUCCESSFUL
> Total time: 781 milliseconds
> --
>
> In Eclipse 3, There is a new Console instance created each time I launch,
> but nothing gets printed out, it just stays there for hours. I can
> terminate the console, but I still can't "build".
>
> I looked at the \workspace\.metadata\.log file and did not see any note
> about ant. Is there something I'm missing? Which log file should I be
> looking at?
>
>
>
Re: Ant script stalls [message #148974 is a reply to message #148402] Wed, 17 March 2004 13:39 Go to previous messageGo to next message
Greg A Seguin is currently offline Greg A SeguinFriend
Messages: 28
Registered: July 2009
Junior Member
Here it is:

<?xml version="1.0" encoding="UTF-8" ?>
<project name="Build Survey" default="Main Survey Build">

<property name="bin" location="WEB-INF/classes" />
<property name="src" location="WEB-INF/src" />
<property name="srcLibs" location="lib" />
<property name="serverBin" location="J:/Randy/CSIM/classes" />
<property name="marsHTDocs" location="J:/Randy/CSIM/htdocs" />

<property name="JSPDir" location="${src}/ccsb/scs/JSP" />
<property name="root" location="." />

<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />

<!-- Announcement Variables -->
<property name="gaPkg" value="/ccsb/scs/ga"/>

<target name="Main Survey Build" >
<echo message="Built."></echo>
</target>

<target name="Copy JSPs to Root">
<copydir src="${JSPDir}"
dest="${root}"/>
</target>



<target name="MARS: Copy GA">
<copy todir="${marsHTDocs}">
<fileset dir="${JSPDir}" >
<include name="**/GA*"/>
</fileset>
</copy>

<copy todir="${serverBin}${gaPkg}">
<fileset dir="${src}${gaPkg}" >
</fileset>
</copy>
</target>
</project>


Darin Swanson wrote:

> Can you provide the build file either here or in a bug report?

> Darins

> "GaS" <gaseguin@cyberus.ca> wrote in message
> news:c2t7fv$3qe$1@eclipse.org...
> > I'm using Eclipse 2 and Eclipse 3 (Tried M7 and M6, current=M6).
> > I have a simple build.xml file which simply seems to stall in the console.
> >
> > In Eclipse 2, it gives me the following output:
> >
> > --
> > Buildfile: c:eclipseworkspaceSurveyAppbuild.xml
> >
> > Copy JSPs to Root:
> > [copydir] DEPRECATED - The copydir task is deprecated. Use copy
> > instead.
> > BUILD SUCCESSFUL
> > Total time: 781 milliseconds
> > --
> >
> > In Eclipse 3, There is a new Console instance created each time I launch,
> > but nothing gets printed out, it just stays there for hours. I can
> > terminate the console, but I still can't "build".
> >
> > I looked at the workspace.metadata.log file and did not see any note
> > about ant. Is there something I'm missing? Which log file should I be
> > looking at?
> >
> >
> >
Re: Ant script stalls [message #149010 is a reply to message #148974] Wed, 17 March 2004 17:40 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
I need a few more details (sorry I should have asked before)

Are you launching the build in the same or separate VM from Eclipse?
What VM are you using?

Darins

"GaS" <gaseguin@cyberus.ca> wrote in message
news:c39kek$r10$1@eclipse.org...
> Here it is:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <project name="Build Survey" default="Main Survey Build">
>
> <property name="bin" location="WEB-INF/classes" />
> <property name="src" location="WEB-INF/src" />
> <property name="srcLibs" location="lib" />
> <property name="serverBin" location="J:/Randy/CSIM/classes" />
> <property name="marsHTDocs" location="J:/Randy/CSIM/htdocs" />
>
> <property name="JSPDir" location="${src}/ccsb/scs/JSP" />
> <property name="root" location="." />
>
> <property name="build.compiler"
> value="org.eclipse.jdt.core.JDTCompilerAdapter" />
>
> <!-- Announcement Variables -->
> <property name="gaPkg" value="/ccsb/scs/ga"/>
>
> <target name="Main Survey Build" >
> <echo message="Built."></echo>
> </target>
>
> <target name="Copy JSPs to Root">
> <copydir src="${JSPDir}"
> dest="${root}"/>
> </target>
>
>
>
> <target name="MARS: Copy GA">
> <copy todir="${marsHTDocs}">
> <fileset dir="${JSPDir}" >
> <include name="**/GA*"/>
> </fileset>
> </copy>
>
> <copy todir="${serverBin}${gaPkg}">
> <fileset dir="${src}${gaPkg}" >
> </fileset>
> </copy>
> </target>
> </project>
>
>
> Darin Swanson wrote:
>
> > Can you provide the build file either here or in a bug report?
>
> > Darins
>
> > "GaS" <gaseguin@cyberus.ca> wrote in message
> > news:c2t7fv$3qe$1@eclipse.org...
> > > I'm using Eclipse 2 and Eclipse 3 (Tried M7 and M6, current=M6).
> > > I have a simple build.xml file which simply seems to stall in the
console.
> > >
> > > In Eclipse 2, it gives me the following output:
> > >
> > > --
> > > Buildfile: c:eclipseworkspaceSurveyAppbuild.xml
> > >
> > > Copy JSPs to Root:
> > > [copydir] DEPRECATED - The copydir task is deprecated. Use copy
> > > instead.
> > > BUILD SUCCESSFUL
> > > Total time: 781 milliseconds
> > > --
> > >
> > > In Eclipse 3, There is a new Console instance created each time I
launch,
> > > but nothing gets printed out, it just stays there for hours. I can
> > > terminate the console, but I still can't "build".
> > >
> > > I looked at the workspace.metadata.log file and did not see any note
> > > about ant. Is there something I'm missing? Which log file should I
be
> > > looking at?
> > >
> > >
> > >
>
>
Re: Ant script stalls [message #149031 is a reply to message #149010] Wed, 17 March 2004 18:27 Go to previous messageGo to next message
Greg A Seguin is currently offline Greg A SeguinFriend
Messages: 28
Registered: July 2009
Junior Member
Eclipse loads from jdk 1.4 (j2sdk1.4.2_04), My default JRE (under
Installed JRE, the one with a checkbox) is 1.2.2 (version 17 I believe)
I'm not 100% sure which is used by ant, but in ant's Global Entries, it
uses JDK 1.4's tools.jar.

Darin Swanson wrote:

> I need a few more details (sorry I should have asked before)

> Are you launching the build in the same or separate VM from Eclipse?
> What VM are you using?

> Darins
Re: Ant script stalls [message #149046 is a reply to message #149031] Wed, 17 March 2004 18:49 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Thanks.
To check the JRE for the Ant build, open the External tools launch
configuration dialog and go to the Ant JRE tab for your launch
configuration.

Darins

"GaS" <gaseguin@cyberus.ca> wrote in message
news:c3a59o$i72$1@eclipse.org...
> Eclipse loads from jdk 1.4 (j2sdk1.4.2_04), My default JRE (under
> Installed JRE, the one with a checkbox) is 1.2.2 (version 17 I believe)
> I'm not 100% sure which is used by ant, but in ant's Global Entries, it
> uses JDK 1.4's tools.jar.
>
> Darin Swanson wrote:
>
> > I need a few more details (sorry I should have asked before)
>
> > Are you launching the build in the same or separate VM from Eclipse?
> > What VM are you using?
>
> > Darins
>
>
Re: Ant script stalls [message #149054 is a reply to message #149046] Wed, 17 March 2004 18:59 Go to previous messageGo to next message
Greg A Seguin is currently offline Greg A SeguinFriend
Messages: 28
Registered: July 2009
Junior Member
WOUHOU!! it was using my JDK 1.2 setting. I modified it to JDK 1.4 and it
seams to work fine! Must be a problem between ant 1.5 - jdk 1.2 and
eclipse somewhere.

Eclips loads in a JDK 1.4 JVM session
Ant loads in a JDK 1.4 JVM session,

but if I add a compile target, which JVM will be used to compile the
application?

How can I make sure that the JDK used to compile is 1.22, even when I use
ANT?


Darin Swanson wrote:

> Thanks.
> To check the JRE for the Ant build, open the External tools launch
> configuration dialog and go to the Ant JRE tab for your launch
> configuration.

> Darins

> "GaS" <gaseguin@cyberus.ca> wrote in message
> news:c3a59o$i72$1@eclipse.org...
> > Eclipse loads from jdk 1.4 (j2sdk1.4.2_04), My default JRE (under
> > Installed JRE, the one with a checkbox) is 1.2.2 (version 17 I believe)
> > I'm not 100% sure which is used by ant, but in ant's Global Entries, it
> > uses JDK 1.4's tools.jar.
> >
> > Darin Swanson wrote:
> >
> > > I need a few more details (sorry I should have asked before)
> >
> > > Are you launching the build in the same or separate VM from Eclipse?
> > > What VM are you using?
> >
> > > Darins
> >
> >
Re: Ant script stalls [message #149061 is a reply to message #149054] Wed, 17 March 2004 19:26 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Check out the docs for the javac task:
http://ant.apache.org/manual/CoreTasks/javac.html
Basically you set the target attribute appropriately.
I believe you want to set your target to 1.1

We still should not be hanging and I will log a bug from this conversation
and look into the issue.

Thanks for you help,
Darins

"GaS" <gaseguin@cyberus.ca> wrote in message
news:c3a76p$k61$1@eclipse.org...
> WOUHOU!! it was using my JDK 1.2 setting. I modified it to JDK 1.4 and it
> seams to work fine! Must be a problem between ant 1.5 - jdk 1.2 and
> eclipse somewhere.
>
> Eclips loads in a JDK 1.4 JVM session
> Ant loads in a JDK 1.4 JVM session,
>
> but if I add a compile target, which JVM will be used to compile the
> application?
>
> How can I make sure that the JDK used to compile is 1.22, even when I use
> ANT?
>
>
> Darin Swanson wrote:
>
> > Thanks.
> > To check the JRE for the Ant build, open the External tools launch
> > configuration dialog and go to the Ant JRE tab for your launch
> > configuration.
>
> > Darins
>
> > "GaS" <gaseguin@cyberus.ca> wrote in message
> > news:c3a59o$i72$1@eclipse.org...
> > > Eclipse loads from jdk 1.4 (j2sdk1.4.2_04), My default JRE (under
> > > Installed JRE, the one with a checkbox) is 1.2.2 (version 17 I
believe)
> > > I'm not 100% sure which is used by ant, but in ant's Global Entries,
it
> > > uses JDK 1.4's tools.jar.
> > >
> > > Darin Swanson wrote:
> > >
> > > > I need a few more details (sorry I should have asked before)
> > >
> > > > Are you launching the build in the same or separate VM from Eclipse?
> > > > What VM are you using?
> > >
> > > > Darins
> > >
> > >
>
>
Re: Ant script stalls [message #149070 is a reply to message #149061] Wed, 17 March 2004 19:32 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=55140

Darins

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:c3a88i$lbt$1@eclipse.org...
> Check out the docs for the javac task:
> http://ant.apache.org/manual/CoreTasks/javac.html
> Basically you set the target attribute appropriately.
> I believe you want to set your target to 1.1
>
> We still should not be hanging and I will log a bug from this conversation
> and look into the issue.
>
> Thanks for you help,
> Darins
>
> "GaS" <gaseguin@cyberus.ca> wrote in message
> news:c3a76p$k61$1@eclipse.org...
> > WOUHOU!! it was using my JDK 1.2 setting. I modified it to JDK 1.4 and
it
> > seams to work fine! Must be a problem between ant 1.5 - jdk 1.2 and
> > eclipse somewhere.
> >
> > Eclips loads in a JDK 1.4 JVM session
> > Ant loads in a JDK 1.4 JVM session,
> >
> > but if I add a compile target, which JVM will be used to compile the
> > application?
> >
> > How can I make sure that the JDK used to compile is 1.22, even when I
use
> > ANT?
> >
> >
> > Darin Swanson wrote:
> >
> > > Thanks.
> > > To check the JRE for the Ant build, open the External tools launch
> > > configuration dialog and go to the Ant JRE tab for your launch
> > > configuration.
> >
> > > Darins
> >
> > > "GaS" <gaseguin@cyberus.ca> wrote in message
> > > news:c3a59o$i72$1@eclipse.org...
> > > > Eclipse loads from jdk 1.4 (j2sdk1.4.2_04), My default JRE (under
> > > > Installed JRE, the one with a checkbox) is 1.2.2 (version 17 I
> believe)
> > > > I'm not 100% sure which is used by ant, but in ant's Global Entries,
> it
> > > > uses JDK 1.4's tools.jar.
> > > >
> > > > Darin Swanson wrote:
> > > >
> > > > > I need a few more details (sorry I should have asked before)
> > > >
> > > > > Are you launching the build in the same or separate VM from
Eclipse?
> > > > > What VM are you using?
> > > >
> > > > > Darins
> > > >
> > > >
> >
> >
>
>
Re: Ant script stalls [message #149087 is a reply to message #149070] Wed, 17 March 2004 19:32 Go to previous message
Greg A Seguin is currently offline Greg A SeguinFriend
Messages: 28
Registered: July 2009
Junior Member
Thanks Again

Darin Swanson wrote:

> Logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=55140

> Darins

> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:c3a88i$lbt$1@eclipse.org...
> > Check out the docs for the javac task:
> > http://ant.apache.org/manual/CoreTasks/javac.html
> > Basically you set the target attribute appropriately.
> > I believe you want to set your target to 1.1
> >
> > We still should not be hanging and I will log a bug from this conversation
> > and look into the issue.
> >
> > Thanks for you help,
> > Darins
> >
> > "GaS" <gaseguin@cyberus.ca> wrote in message
> > news:c3a76p$k61$1@eclipse.org...
> > > WOUHOU!! it was using my JDK 1.2 setting. I modified it to JDK 1.4 and
> it
> > > seams to work fine! Must be a problem between ant 1.5 - jdk 1.2 and
> > > eclipse somewhere.
> > >
> > > Eclips loads in a JDK 1.4 JVM session
> > > Ant loads in a JDK 1.4 JVM session,
> > >
> > > but if I add a compile target, which JVM will be used to compile the
> > > application?
> > >
> > > How can I make sure that the JDK used to compile is 1.22, even when I
> use
> > > ANT?
> > >
> > >
> > > Darin Swanson wrote:
> > >
> > > > Thanks.
> > > > To check the JRE for the Ant build, open the External tools launch
> > > > configuration dialog and go to the Ant JRE tab for your launch
> > > > configuration.
> > >
> > > > Darins
> > >
> > > > "GaS" <gaseguin@cyberus.ca> wrote in message
> > > > news:c3a59o$i72$1@eclipse.org...
> > > > > Eclipse loads from jdk 1.4 (j2sdk1.4.2_04), My default JRE (under
> > > > > Installed JRE, the one with a checkbox) is 1.2.2 (version 17 I
> > believe)
> > > > > I'm not 100% sure which is used by ant, but in ant's Global Entries,
> > it
> > > > > uses JDK 1.4's tools.jar.
> > > > >
> > > > > Darin Swanson wrote:
> > > > >
> > > > > > I need a few more details (sorry I should have asked before)
> > > > >
> > > > > > Are you launching the build in the same or separate VM from
> Eclipse?
> > > > > > What VM are you using?
> > > > >
> > > > > > Darins
> > > > >
> > > > >
> > >
> > >
> >
> >
Previous Topic:Ant tasks and types have leading / in M7
Next Topic:JUnit: template for run/debug configurations
Goto Forum:
  


Current Time: Sat Nov 09 05:49:03 GMT 2024

Powered by FUDForum. Page generated in 0.04493 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top