Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] CBI-Build fails

hm - on 2nd look it is correct! I'll disable the tests for now.

Tom

On 29.06.13 23:47, Tom Schindl wrote:
Well this is not the correct path, like the javadoc one i sent there is
no ..

Let me see if this works

Tom

Von meinem iPhone gesendet

Am 29.06.2013 um 23:35 schrieb Thanh Ha <thanh.ha@xxxxxxxxxxx
<mailto:thanh.ha@xxxxxxxxxxx>>:

Hi Tom,

If your using Apple JDK they renamed rt.jar to classes.jar which will
cause this issue although there was some logic added the the parent
pom [1] to detect this so I'm not sure why it didn't activate for you.
I would double check where classes.jar is found on your system, the
parent pom searches in " ${java.home}/../Classes/classes.jar".


[1]
http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/tree/eclipse-platform-parent/pom.xml#n610


Thanh


On 29/06/13 03:07 PM, Tom Schindl wrote:
ok - next failure is in org.eclipse.equinox.p2.tests it completely
fails to compile those tests.

It looks like it can't find the rt.jar:

ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:0.18.0:compile
(default-compile) on project org.eclipse.equinox.p2.tests:
Compilation failure: Compilation failure:
[ERROR]
/Users/tomschindl/z/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ActionTest.java:[1,0]
[ERROR]
/*******************************************************************************
[ERROR] ^
[ERROR] The type java.lang.Object cannot be resolved. It is
indirectly referenced from required .class files
[ERROR]
/Users/tomschindl/z/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ActionTest.java:[1,0]
[ERROR]
/*******************************************************************************
[ERROR] ^
[ERROR] The type java.io.IOException cannot be resolved. It is
indirectly referenced from required .class files
[ERROR]
/Users/tomschindl/z/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ActionTest.java:[1,0]
[ERROR]
/*******************************************************************************
[ERROR] ^
[ERROR] The type java.util.Map cannot be resolved. It is indirectly
referenced from required .class files
[ERROR]
/Users/tomschindl/z/rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/ActionTest.java:[1,0]
[ERROR]
/*******************************************************************************
[ERROR] ^
[ERROR] The type java.lang.Cloneable cannot be resolved. It is
indirectly referenced from required .class files

I give up for today.

Tom



On 29.06.13 20:16, Tom Schindl wrote:
Ok

the correct definition is:

<target name="getJavadocPath">
     <available file="${java.home}/../bin/javadoc.exe"
property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
     <available file="${java.home}/../bin/javadoc" property="javadoc"
value="${java.home}/../bin/javadoc" />
     <available file="${java.home}/bin/javadoc" property="javadoc"
value="${java.home}/bin/javadoc" />
</target>

Tom

On 29.06.13 19:19, Tom Schindl wrote:
Unfortunately the build still fails on OS-X:


/Users/tomschindl/z/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/buildDoc.xml:177:


Execute failed: java.io.IOException: Cannot run program "${javadoc}":
error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)



    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
    at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
    at
org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
    at
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
    at
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
    at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)



    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)



    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)



    at
org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)



    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)



    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)



    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)



    at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)



    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)



    at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:537)



    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)



    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)



    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
    at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)



    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)



    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)



    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)



    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)



    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)



    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)



    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
    at java.lang.ProcessImpl.start(ProcessImpl.java:91)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 55 more

Total time: 2 seconds
An error has occurred. See the log file
/Users/tomschindl/z/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/workspace/.metadata/.log.




Looking at the buildDoc.xml I guess the problem is how the javadoc
executable is looked up:

<target name="getJavadocPath">
                <available file="${java.home}/../bin/javadoc.exe"
property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
                <available file="${java.home}/../bin/javadoc"
property="javadoc" value="${java.home}/../bin/javadoc" />
        </target>

but on OS-X is has be (at least that's what I guess it is):

<target name="getJavadocPath">
                <available file="${java.home}/../bin/javadoc.exe"
property="javadoc" value="${java.home}/../bin/javadoc.exe"/>
                <available file="${java.home}/bin/javadoc"
property="javadoc" value="${java.home}/../bin/javadoc" />
        </target>

I've started a new build let's see how far this will get me.
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx <mailto:cbi-dev@xxxxxxxxxxx>
http://dev.eclipse.org/mailman/listinfo/cbi-dev


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




Back to the top