Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] Bug 3054 and eclipse build 20020416

Hi Rodrigo

For both cases I have a System environment variable which is
set to the root of my SDK:
  JAVA_HOME=C:\java\jdk1.3.1

Now, the non-eclipse Ant resolves that to:
javadoc:
     [echo] java.home is set to C:\java\jdk1.3.1\jre

In Eclipse, I get the location to some plugin before javadoc fails:
java.home is set to C:\Program Files\JavaSoft\JRE\1.3.1

Thanks
Tom

PS: In Eclipse, the javac task works nonetheless with that setting ?!?


Rodrigo_Peretti@xxxxxxx wrote:

Could you open a bug for that? First, make sure that both (inside and
outside Eclipse) JAVA_HOME variables point to the same place (I believe
that you just need to print the value of ${java.home}).

Thanks,
Rodrigo



Tom Enderes <ecl@xxxxxxxxxxxx> To: platform-ant-dev@xxxxxxxxxxx Sent by: cc: platform-ant-dev-admin@ Subject: Re: [platform-ant-dev] Bug 3054 and eclipse build 20020416 eclipse.org 05/24/2002 04:06 PM Please respond to platform-ant-dev



Hi Rodrigo,

thanks for the quick reply, the tools issue is solved then.

Javadoc is not on my path, but I have the JAVA_HOME
set and the non-Eclipse Ant uses this successfully
to locate the javadoc executable.
Now, shouldn't Ant in Eclipse be able to do the same ?

Thanks
Tom

Rodrigo_Peretti@xxxxxxx wrote:

About tools.jar you can add that to your Ant classpath:

On M5 go to Window->Preferences->Ant->Customize
On F1 go to Window->Preferences->External Tools->Ant

The problem with javadoc bellow seem to be that javadoc is not in your
system path (set PATH=... on windows before starting Eclipse).

Rodrigo






                   Tom Enderes

               <ecl@xxxxxxxxxxxx>             To:
platform-ant-dev@xxxxxxxxxxx
                           Sent by:                       cc:

                       platform-ant-dev-admin@        Subject:
[platform-ant-dev] Bug 3054 and eclipse build 20020416
                          eclipse.org





              05/24/2002 01:19 PM

          Please respond to

      platform-ant-dev








Hi,

there was a problem with javac and with javadoc when executing an ant
script from Eclipse.
The problem with the javac task went away after manually adding the
tools.jar to the folder eclipse\plugins\org.eclipse.ant.core .
(Has that been addressed?!?)

Unfortunately I did not find a workaround for "Javadoc failed" (see
below). Is that what has been fixed in 3054 or is there a workaround ?

Thanks a lot
Tom

  > Generating Javadoc
  > Javadoc execution
  > BuildException: C:\javasafe\dev_ecl\project1\build.xml:62:
  > Javadoc failed:
  > java.io.IOException: CreateProcess: javadoc -d
  > C:\javasafe\dev_ecl\doc\project1 -classpath
  > C:\javasafe\dev_ecl\project1\lib;C:\javasafe\external\osgi2.0r
  > efimpl\osgi.ja
  > r -sourcepath C:\javasafe\dev_ecl\project1\src -version -author
  > com.echelon.project1 error=2
  > BuildException: C:\javasafe\dev_ecl\project1\build.xml:62:
  > Javadoc failed:
  > java.io.IOException: CreateProcess: javadoc -d
  > C:\javasafe\dev_ecl\doc\project1 -classpath
  > C:\javasafe\dev_ecl\project1\lib;C:\javasafe\external\osgi2.0r
  > efimpl\osgi.ja
  > r -sourcepath C:\javasafe\dev_ecl\project1\src -version -author
  > com.echelon.project1 error=2
  > C:\javasafe\dev_ecl\project1\build.xml:62: Javadoc failed:
  > java.io.IOException: CreateProcess: javadoc -d
  > C:\javasafe\dev_ecl\doc\project1 -classpath
  > C:\javasafe\dev_ecl\project1\lib;C:\javasafe\external\osgi2.0r
  > efimpl\osgi.ja
  > r -sourcepath C:\javasafe\dev_ecl\project1\src -version -author
  > com.echelon.project1 error=2
  >                  at
  > org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:969)
  >                  at org.apache.tools.ant.Task.perform(Task.java:217)
  >                  at
  > org.apache.tools.ant.Target.execute(Target.java:184)
  >                  at
  > org.apache.tools.ant.Target.performTasks(Target.java:202)
  >                  at
  > org.apache.tools.ant.Project.executeTarget(Project.java:601)
  >                  at
  > org.apache.tools.ant.Project.executeTargets(Project.java:560)
  >                  at
  > org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Intern
  > alAntRunner.ja
  > va:262)
  >                  at java.lang.reflect.Method.invoke(Native Method)
  >                  at
  > org.eclipse.ant.core.AntRunner.run(AntRunner.java:149)
  >                  at
  > org.eclipse.ant.internal.ui.AntLaunchWizard$1.run(AntLaunchWiz
  > ard.java:218)
  >                  at
  > org.eclipse.jface.operation.ModalContext$ModalContextThread.ru
  > n(ModalContext
  > .java:98)
  > --- Nested Exception ---
  > java.io.IOException: CreateProcess: javadoc -d
  > C:\javasafe\dev_ecl\doc\project1 -classpath
  > C:\javasafe\dev_ecl\project1\lib;C:\javasafe\external\osgi2.0r
  > efimpl\osgi.ja
  > r -sourcepath C:\javasafe\dev_ecl\project1\src -version -author
  > com.echelon.project1 error=2
  >                  at java.lang.Win32Process.create(Native Method)
  >                  at java.lang.Win32Process.<init>(Unknown Source)
  >                  at java.lang.Runtime.execInternal(Native Method)
  >                  at java.lang.Runtime.exec(Unknown Source)
  >                  at java.lang.reflect.Method.invoke(Native Method)
  >                  at
  > org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.ex
  > ec(Execute.jav
  > a:564)
  >                  at
  > org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
  >                  at
  > org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:964)
  >                  at org.apache.tools.ant.Task.perform(Task.java:217)
  >                  at
  > org.apache.tools.ant.Target.execute(Target.java:184)
  >                  at
  > org.apache.tools.ant.Target.performTasks(Target.java:202)
  >                  at
  > org.apache.tools.ant.Project.executeTarget(Project.java:601)
  >                  at
  > org.apache.tools.ant.Project.executeTargets(Project.java:560)
  >                  at
  > org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Intern
  > alAntRunner.ja
  > va:262)
  >                  at java.lang.reflect.Method.invoke(Native Method)
  >                  at
  > org.eclipse.ant.core.AntRunner.run(AntRunner.java:149)
  >                  at
  > org.eclipse.ant.internal.ui.AntLaunchWizard$1.run(AntLaunchWiz
  > ard.java:218)
  >                  at
  > org.eclipse.jface.operation.ModalContext$ModalContextThread.ru
  > n(ModalContext
  > .java:98)
  >
  >
  >




_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev




_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev






Back to the top