Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » build fails and then succeeds without me changing anything(issue appears to be with naming of files when it assembles my plugins)
build fails and then succeeds without me changing anything [message #540056] Mon, 14 June 2010 13:24 Go to next message
Sam Jones is currently offline Sam Jones
Messages: 8
Registered: May 2010
Junior Member
I have a headless PDE/Build that sometimes passes and sometimes fails, seemingly without reason. I can run it 6 times in a row, and it will pass 2 and fail 4, in no particular order.

What seems to be happening is that the generated target "assemble.archive" doesn't always reference the libraries correctly. Sometimes libraries are copied as a .jar file, and sometimes as a directory, and the build fails when that target is expecting one but gets the other. It's also not always the same library.

Here is the last page or so of my build's console output on a failure:
jarIng_NoManifest:

jarUp:

jarIng_NoManifest:

jarUp:

jarIng_NoManifest:

jarUp:

jarIng_NoManifest:

jarUp:

jarIng_NoManifest:

customAssembly:

generate.p2.metadata:

assemble.archive:

customAssembly:

BUILD FAILED
/home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/productBuild/productBuild.xml:42: The following error occurred while executing this line:
/home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/build.xml:129: The following error occurred while executing this line:
/home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/templates/headless-build/customTargets.xml:12: The following error occurred while executing this line:
/home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/productBuild/allElements.xml:20: The following error occurred while executing this line:
/home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/genericTargets.xml:192: The following error occurred while executing this line:
/home/sjones/workspace/package.org.eclipse.pde.build.container.feature.all.xml:24: The following error occurred while executing this line:
/home/sjones/workspace/package.org.eclipse.pde.build.container.feature.all.xml:15: The following error occurred while executing this line:
/home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35x_20100114/scripts/productBuild/allElements.xml:75: The following error occurred while executing this line:
/home/sjones/workspace/package.org.eclipse.pde.build.container.feature.linux.gtk.x86.xml:99: The following error occurred while executing this line:
/home/sjones/workspace/package.org.eclipse.pde.build.container.feature.linux.gtk.x86.xml:280: /home/sjones/workspace/tmp/<project name>/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800 not found.

Total time: 40 seconds


Here is the target in question:
        <target name="assemble.archive">
                <antcall target="customAssembly">
                        <param name="rootFolder" value="${eclipse.base}/linux.gtk.x86/${collectingFolder}"/>
                        <param name="customTarget" value="pre.archive"/>
                </antcall>
                <zip destfile="${archiveFullPath}" filesonly="false" whenempty="skip" update="true">
                        <zipfileset file="${eclipse.base}/plugins/com.ibm.icu_4.0.1.v20090822.jar" fullpath="${pluginArchivePrefix}/com.ibm.icu_4.0.1.v20090822.jar"                  />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.core.commands_3.5.0.I20090525-2000.jar" fullpath="${pluginArchivePrefix}/org.eclipse.core.commands_3.5.0.I20090525-2000.jar"                    />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar" fullpath="${pluginArchivePrefix}/org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar"                    />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.core.databinding_1.2.0.M20090819-0800" prefix="${pluginArchivePrefix}/org.eclipse.core.databinding_1.2.0.M20090819-0800"                 />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.core.databinding.observable_1.2.0.M20090902-0800" prefix="${pluginArchivePrefix}/org.eclipse.core.databinding.observable_1.2.0.M20090902-0800"                   />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.core.databinding.property_1.2.0.M20090819-0800" prefix="${pluginArchivePrefix}/org.eclipse.core.databinding.property_1.2.0.M20090819-0800"                       />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar" fullpath="${pluginArchivePrefix}/org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar"                  />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar" fullpath="${pluginArchivePrefix}/org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar"                      />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar" fullpath="${pluginArchivePrefix}/org.eclipse.core.jobs_3.4.100.v20090429-1800.jar"                        />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar" fullpath="${pluginArchivePrefix}/org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar"                        />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar" fullpath="${pluginArchivePrefix}/org.eclipse.core.runtime_3.5.0.v20090525.jar"                        />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar" fullpath="${pluginArchivePrefix}/org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar"                        />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar" fullpath="${pluginArchivePrefix}/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar"                        />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar" fullpath="${pluginArchivePrefix}/org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar"                    />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar" fullpath="${pluginArchivePrefix}/org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar"                  />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.help_3.4.1.v20090805_35x.jar" fullpath="${pluginArchivePrefix}/org.eclipse.help_3.4.1.v20090805_35x.jar"                        />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.jface_3.5.2.M20100120-0800" prefix="${pluginArchivePrefix}/org.eclipse.jface_3.5.2.M20100120-0800"                       />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.jface.databinding_1.3.1.M20090826-0800" prefix="${pluginArchivePrefix}/org.eclipse.jface.databinding_1.3.1.M20090826-0800"                       />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.jface.text_3.5.2.r352_v20091118-0800" prefix="${pluginArchivePrefix}/org.eclipse.jface.text_3.5.2.r352_v20091118-0800"                   />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar" fullpath="${pluginArchivePrefix}/org.eclipse.osgi_3.5.2.R35x_v20100126.jar"                      />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.swt_3.5.2.v3557f.jar" fullpath="${pluginArchivePrefix}/org.eclipse.swt_3.5.2.v3557f.jar"                        />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.text_3.5.0.v20090513-2000.jar" fullpath="${pluginArchivePrefix}/org.eclipse.text_3.5.0.v20090513-2000.jar"                      />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.ui_3.5.2.M20100120-0800" prefix="${pluginArchivePrefix}/org.eclipse.ui_3.5.2.M20100120-0800"                     />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800" prefix="${pluginArchivePrefix}/org.eclipse.ui.views_3.4.1.M20090826-0800"                 />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.ui.workbench_3.5.2.M20100113-0800" prefix="${pluginArchivePrefix}/org.eclipse.ui.workbench_3.5.2.M20100113-0800"                 />
                        <zipfileset file="${eclipse.base}/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar" fullpath="${pluginArchivePrefix}/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar"                  />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.core.resources.compatibility_3.4.1.R35x_v20100113-0530" prefix="${pluginArchivePrefix}/org.eclipse.core.resources.compatibility_3.4.1.R35x_v20100113-0530"                       />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800" prefix="${pluginArchivePrefix}/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800"                       />
                        <zipfileset dir="${eclipse.base}/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520" prefix="${pluginArchivePrefix}/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520"                   />
                </zip>
        </target>


and here is a listing of the tmp directory it is looking in:
sjones@cc0:~/workspace/build.configuration$ ls 

/home/sjones/workspace/tmp/<project name>/plugins/
com.ibm.icu_4.0.1.v20090822.jar                                         
org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
org.eclipse.core.commands_3.5.0.I20090525-2000.jar
org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar
org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar
org.eclipse.core.databinding_1.2.0.M20090819-0800
org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar
org.eclipse.core.databinding.observable_1.2.0.M20090902-0800            
org.eclipse.help_3.4.1.v20090805_35x.jar
org.eclipse.core.databinding.property_1.2.0.M20090819-0800    
org.eclipse.jface_3.5.2.M20100120-0800
org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar         
org.eclipse.jface.databinding_1.3.1.M20090826-0800
org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar       
org.eclipse.jface.text_3.5.2.r352_v20091118-0800
org.eclipse.core.jobs_3.4.100.v20090429-1800.jar                        
org.eclipse.osgi_3.5.2.R35x_v20100126.jar
org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar       
org.eclipse.swt_3.5.2.v3557f.jar
org.eclipse.core.resources.compatibility_3.4.1.R35x_v20100113-0530      
org.eclipse.text_3.5.0.v20090513-2000.jar
org.eclipse.core.runtime_3.5.0.v20090525.jar                            
org.eclipse.ui_3.5.2.M20100120-0800
org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800  
org.eclipse.ui.views_3.4.1.M20090826-0800.jar
org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar                       
org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar
org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar
sjones@cc0:~/workspace/build.configuration$


As you can see, it's looking for a folder for org.eclipse.ui.views, but this time through the build it created a .jar instead, breaking the assembly.

Is there anything I can try to troubleshoot this?
Re: build fails and then succeeds without me changing anything [message #540355 is a reply to message #540056] Tue, 15 June 2010 15:03 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
Check that you only have one instance of the org.eclipse.ui.views bundle in
your build setup.

In particular, look to see if you have imported this bundle into your
workspace and this is somehow available to the build.

Generally this kind of problem is caused by a feature specifying an "unpack"
value for a binary feature that does not match the shape on disk.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265471

The only way I can see this happening in a plugin based product build is
perhaps if there are multiple copies of the bundle available, one of which
is a folder. If there are multiple copies, this could also explain why it
succeeds sometimes and fails others, depending on which instance gets
chosen by the osgi resolver (which will be somewhat random).

-Andrew


Sam Jones wrote:

> I have a headless PDE/Build that sometimes passes and sometimes fails,
> seemingly without reason. I can run it 6 times in a row, and it will pass
> 2 and fail 4, in no particular order.
>
> What seems to be happening is that the generated target "assemble.archive"
> doesn't always reference the libraries correctly. Sometimes libraries are
> copied as a .jar file, and sometimes as a directory, and the build fails
> when that target is expecting one but gets the other. It's also not always
> the same library.
>
> Here is the last page or so of my build's console output on a failure:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> customAssembly:
>
> generate.p2.metadata:
>
> assemble.archive:
>
> customAssembly:
>
> BUILD FAILED
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/productBuild/productBuild.xml:42:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/build.xml:129:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/templates/headless-build/customTargets.xml:12:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/productBuild/allElements.xml:20:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/genericTargets.xml:192:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.all.xml:24:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.all.xml:15:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/productBuild/allElements.xml:75:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.linux.gtk.x86.xml:99:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.linux.gtk.x86.xml:280:
> /home/sjones/workspace/tmp/<project
> name>/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800 not found.
>
> Total time: 40 seconds
>
>
> Here is the target in question:
> <target name="assemble.archive">
> <antcall target="customAssembly">
> <param name="rootFolder"
>
value="${eclipse.base}/linux.gtk.x86/${collectingFolder}"/ >
> <param name="customTarget" value="pre.archive"/>
> </antcall>
> <zip destfile="${archiveFullPath}" filesonly="false"
> whenempty="skip" update="true">
> <zipfileset
>
file="${eclipse.base}/plugins/com.ibm.icu_4.0.1.v20090822.jar "
>
fullpath="${pluginArchivePrefix}/com.ibm.icu_4.0.1.v20090822.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.commands_3.5.0.I200 90525-2000.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.commands_3.5.0.I2009 0525-2000.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.contenttype_3.4.1.R 35x_v20090826-0451.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.contenttype_3.4.1.R3 5x_v20090826-0451.jar "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.databinding_1.2.0.M 20090819-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.databinding_1.2.0.M2 0090819-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.databinding.observa ble_1.2.0.M20090902-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.databinding.observab le_1.2.0.M20090902-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.databinding.propert y_1.2.0.M20090819-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.databinding.property _1.2.0.M20090819-0800 "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.expressions_3.4.101 .R35x_v20100209.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.expressions_3.4.101. R35x_v20100209.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.filesystem_1.2.1.R3 5x_v20091203-1235.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.filesystem_1.2.1.R35 x_v20091203-1235.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.jobs_3.4.100.v20090 429-1800.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.jobs_3.4.100.v200904 29-1800.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.resources_3.5.2.R35 x_v20091203-1235.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.resources_3.5.2.R35x _v20091203-1235.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.runtime_3.5.0.v2009 0525.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.runtime_3.5.0.v20090 525.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.app_1.2.1.R35x_v 20091203.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.app_1.2.1.R35x_v2 0091203.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.common_3.5.1.R35 x_v20090807-1100.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.common_3.5.1.R35x _v20090807-1100.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.preferences_3.2. 301.R35x_v20091117.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.preferences_3.2.3 01.R35x_v20091117.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.registry_3.4.100 .v20090520-1800.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.registry_3.4.100. v20090520-1800.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.help_3.4.1.v20090805_35x .jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.help_3.4.1.v20090805_35x. jar "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.jface_3.5.2.M20100120-08 00 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.jface_3.5.2.M20100120-080 0 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.jface.databinding_1.3.1. M20090826-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.jface.databinding_1.3.1.M 20090826-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.jface.text_3.5.2.r352_v2 0091118-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.jface.text_3.5.2.r352_v20 091118-0800 "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.osgi_3.5.2.R35x_v2010012 6.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.osgi_3.5.2.R35x_v20100126 .jar "
> />
> <zipfileset
>
file="${eclipse.base}/plugins/org.eclipse.swt_3.5.2.v3557f.jar "
>
fullpath="${pluginArchivePrefix}/org.eclipse.swt_3.5.2.v3557f.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.text_3.5.0.v20090513-200 0.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.text_3.5.0.v20090513-2000 .jar "
> />
> <zipfileset
>
dir="${eclipse.base}/plugins/org.eclipse.ui_3.5.2.M20100120-0800 "
>
prefix="${pluginArchivePrefix}/org.eclipse.ui_3.5.2.M20100120-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.ui.views_3.4.1.M20090826 -0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.ui.views_3.4.1.M20090826- 0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.ui.workbench_3.5.2.M2010 0113-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.ui.workbench_3.5.2.M20100 113-0800 "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.launcher_1.0.201 .R35x_v20090715.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.launcher_1.0.201. R35x_v20090715.jar "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.resources.compatibi lity_3.4.1.R35x_v20100113-0530 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.resources.compatibil ity_3.4.1.R35x_v20100113-0530 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.runtime.compatibili ty.registry_3.2.200.v20090429-1800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.runtime.compatibilit y.registry_3.2.200.v20090429-1800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.equinox.launcher.gtk.lin ux.x86_1.0.200.v20090520 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.equinox.launcher.gtk.linu x.x86_1.0.200.v20090520 "
> />
> </zip>
> </target>
>
>
> and here is a listing of the tmp directory it is looking in:
>
> sjones@cc0:~/workspace/build.configuration$ ls
>
> /home/sjones/workspace/tmp/<project name>/plugins/
> com.ibm.icu_4.0.1.v20090822.jar
> org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
> org.eclipse.core.commands_3.5.0.I20090525-2000.jar
> org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
> org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar
> org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar
> org.eclipse.core.databinding_1.2.0.M20090819-0800
> org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar
> org.eclipse.core.databinding.observable_1.2.0.M20090902-0800
> org.eclipse.help_3.4.1.v20090805_35x.jar
> org.eclipse.core.databinding.property_1.2.0.M20090819-0800
> org.eclipse.jface_3.5.2.M20100120-0800
> org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar
> org.eclipse.jface.databinding_1.3.1.M20090826-0800
> org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar
> org.eclipse.jface.text_3.5.2.r352_v20091118-0800
> org.eclipse.core.jobs_3.4.100.v20090429-1800.jar
> org.eclipse.osgi_3.5.2.R35x_v20100126.jar
> org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar
> org.eclipse.swt_3.5.2.v3557f.jar
> org.eclipse.core.resources.compatibility_3.4.1.R35x_v2010011 3-0530
> org.eclipse.text_3.5.0.v20090513-2000.jar
> org.eclipse.core.runtime_3.5.0.v20090525.jar
> org.eclipse.ui_3.5.2.M20100120-0800
> org.eclipse.core.runtime.compatibility.registry_3.2.200.v200 90429-1800
> org.eclipse.ui.views_3.4.1.M20090826-0800.jar
> org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar
> org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar
> org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar
> sjones@cc0:~/workspace/build.configuration$
>
>
> As you can see, it's looking for a folder for org.eclipse.ui.views, but
> this time through the build it created a .jar instead, breaking the
> assembly.
>
> Is there anything I can try to troubleshoot this?
Re: build fails and then succeeds without me changing anything [message #540363 is a reply to message #540056] Tue, 15 June 2010 15:47 Go to previous messageGo to next message
Sam Jones is currently offline Sam Jones
Messages: 8
Registered: May 2010
Junior Member
Thank you so much! This appears to have been the problem. These plugins were being checked out by Buckminster -- I deleted the offending plugins from my workspace, and have 10+ successful builds in a row now.

Again, thank you very much. This was driving me nuts.
Re: build fails and then succeeds without me changing anything [message #606062 is a reply to message #540056] Tue, 15 June 2010 15:03 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
Check that you only have one instance of the org.eclipse.ui.views bundle in
your build setup.

In particular, look to see if you have imported this bundle into your
workspace and this is somehow available to the build.

Generally this kind of problem is caused by a feature specifying an "unpack"
value for a binary feature that does not match the shape on disk.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265471

The only way I can see this happening in a plugin based product build is
perhaps if there are multiple copies of the bundle available, one of which
is a folder. If there are multiple copies, this could also explain why it
succeeds sometimes and fails others, depending on which instance gets
chosen by the osgi resolver (which will be somewhat random).

-Andrew


Sam Jones wrote:

> I have a headless PDE/Build that sometimes passes and sometimes fails,
> seemingly without reason. I can run it 6 times in a row, and it will pass
> 2 and fail 4, in no particular order.
>
> What seems to be happening is that the generated target "assemble.archive"
> doesn't always reference the libraries correctly. Sometimes libraries are
> copied as a .jar file, and sometimes as a directory, and the build fails
> when that target is expecting one but gets the other. It's also not always
> the same library.
>
> Here is the last page or so of my build's console output on a failure:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> jarUp:
>
> jarIng_NoManifest:
>
> customAssembly:
>
> generate.p2.metadata:
>
> assemble.archive:
>
> customAssembly:
>
> BUILD FAILED
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/productBuild/productBuild.xml:42:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/build.xml:129:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/templates/headless-build/customTargets.xml:12:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/productBuild/allElements.xml:20:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/genericTargets.xml:192:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.all.xml:24:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.all.xml:15:
> The following error occurred while executing this line:
> /home/sjones/eclipse/plugins/org.eclipse.pde.build_3.5.2.R35 x_20100114/scripts/productBuild/allElements.xml:75:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.linux.gtk.x86.xml:99:
> The following error occurred while executing this line:
> /home/sjones/workspace/package.org.eclipse.pde.build.contain er.feature.linux.gtk.x86.xml:280:
> /home/sjones/workspace/tmp/<project
> name>/plugins/org.eclipse.ui.views_3.4.1.M20090826-0800 not found.
>
> Total time: 40 seconds
>
>
> Here is the target in question:
> <target name="assemble.archive">
> <antcall target="customAssembly">
> <param name="rootFolder"
>
value="${eclipse.base}/linux.gtk.x86/${collectingFolder}"/ >
> <param name="customTarget" value="pre.archive"/>
> </antcall>
> <zip destfile="${archiveFullPath}" filesonly="false"
> whenempty="skip" update="true">
> <zipfileset
>
file="${eclipse.base}/plugins/com.ibm.icu_4.0.1.v20090822.jar "
>
fullpath="${pluginArchivePrefix}/com.ibm.icu_4.0.1.v20090822.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.commands_3.5.0.I200 90525-2000.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.commands_3.5.0.I2009 0525-2000.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.contenttype_3.4.1.R 35x_v20090826-0451.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.contenttype_3.4.1.R3 5x_v20090826-0451.jar "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.databinding_1.2.0.M 20090819-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.databinding_1.2.0.M2 0090819-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.databinding.observa ble_1.2.0.M20090902-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.databinding.observab le_1.2.0.M20090902-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.databinding.propert y_1.2.0.M20090819-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.databinding.property _1.2.0.M20090819-0800 "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.expressions_3.4.101 .R35x_v20100209.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.expressions_3.4.101. R35x_v20100209.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.filesystem_1.2.1.R3 5x_v20091203-1235.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.filesystem_1.2.1.R35 x_v20091203-1235.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.jobs_3.4.100.v20090 429-1800.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.jobs_3.4.100.v200904 29-1800.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.resources_3.5.2.R35 x_v20091203-1235.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.resources_3.5.2.R35x _v20091203-1235.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.core.runtime_3.5.0.v2009 0525.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.core.runtime_3.5.0.v20090 525.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.app_1.2.1.R35x_v 20091203.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.app_1.2.1.R35x_v2 0091203.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.common_3.5.1.R35 x_v20090807-1100.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.common_3.5.1.R35x _v20090807-1100.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.preferences_3.2. 301.R35x_v20091117.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.preferences_3.2.3 01.R35x_v20091117.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.registry_3.4.100 .v20090520-1800.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.registry_3.4.100. v20090520-1800.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.help_3.4.1.v20090805_35x .jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.help_3.4.1.v20090805_35x. jar "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.jface_3.5.2.M20100120-08 00 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.jface_3.5.2.M20100120-080 0 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.jface.databinding_1.3.1. M20090826-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.jface.databinding_1.3.1.M 20090826-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.jface.text_3.5.2.r352_v2 0091118-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.jface.text_3.5.2.r352_v20 091118-0800 "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.osgi_3.5.2.R35x_v2010012 6.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.osgi_3.5.2.R35x_v20100126 .jar "
> />
> <zipfileset
>
file="${eclipse.base}/plugins/org.eclipse.swt_3.5.2.v3557f.jar "
>
fullpath="${pluginArchivePrefix}/org.eclipse.swt_3.5.2.v3557f.jar "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.text_3.5.0.v20090513-200 0.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.text_3.5.0.v20090513-2000 .jar "
> />
> <zipfileset
>
dir="${eclipse.base}/plugins/org.eclipse.ui_3.5.2.M20100120-0800 "
>
prefix="${pluginArchivePrefix}/org.eclipse.ui_3.5.2.M20100120-0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.ui.views_3.4.1.M20090826 -0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.ui.views_3.4.1.M20090826- 0800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.ui.workbench_3.5.2.M2010 0113-0800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.ui.workbench_3.5.2.M20100 113-0800 "
> />
> <zipfileset
>
file=" ${eclipse.base}/plugins/org.eclipse.equinox.launcher_1.0.201 .R35x_v20090715.jar "
>
fullpath=" ${pluginArchivePrefix}/org.eclipse.equinox.launcher_1.0.201. R35x_v20090715.jar "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.resources.compatibi lity_3.4.1.R35x_v20100113-0530 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.resources.compatibil ity_3.4.1.R35x_v20100113-0530 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.core.runtime.compatibili ty.registry_3.2.200.v20090429-1800 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.core.runtime.compatibilit y.registry_3.2.200.v20090429-1800 "
> />
> <zipfileset
>
dir=" ${eclipse.base}/plugins/org.eclipse.equinox.launcher.gtk.lin ux.x86_1.0.200.v20090520 "
>
prefix=" ${pluginArchivePrefix}/org.eclipse.equinox.launcher.gtk.linu x.x86_1.0.200.v20090520 "
> />
> </zip>
> </target>
>
>
> and here is a listing of the tmp directory it is looking in:
>
> sjones@cc0:~/workspace/build.configuration$ ls
>
> /home/sjones/workspace/tmp/<project name>/plugins/
> com.ibm.icu_4.0.1.v20090822.jar
> org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
> org.eclipse.core.commands_3.5.0.I20090525-2000.jar
> org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
> org.eclipse.core.contenttype_3.4.1.R35x_v20090826-0451.jar
> org.eclipse.equinox.preferences_3.2.301.R35x_v20091117.jar
> org.eclipse.core.databinding_1.2.0.M20090819-0800
> org.eclipse.equinox.registry_3.4.100.v20090520-1800.jar
> org.eclipse.core.databinding.observable_1.2.0.M20090902-0800
> org.eclipse.help_3.4.1.v20090805_35x.jar
> org.eclipse.core.databinding.property_1.2.0.M20090819-0800
> org.eclipse.jface_3.5.2.M20100120-0800
> org.eclipse.core.expressions_3.4.101.R35x_v20100209.jar
> org.eclipse.jface.databinding_1.3.1.M20090826-0800
> org.eclipse.core.filesystem_1.2.1.R35x_v20091203-1235.jar
> org.eclipse.jface.text_3.5.2.r352_v20091118-0800
> org.eclipse.core.jobs_3.4.100.v20090429-1800.jar
> org.eclipse.osgi_3.5.2.R35x_v20100126.jar
> org.eclipse.core.resources_3.5.2.R35x_v20091203-1235.jar
> org.eclipse.swt_3.5.2.v3557f.jar
> org.eclipse.core.resources.compatibility_3.4.1.R35x_v2010011 3-0530
> org.eclipse.text_3.5.0.v20090513-2000.jar
> org.eclipse.core.runtime_3.5.0.v20090525.jar
> org.eclipse.ui_3.5.2.M20100120-0800
> org.eclipse.core.runtime.compatibility.registry_3.2.200.v200 90429-1800
> org.eclipse.ui.views_3.4.1.M20090826-0800.jar
> org.eclipse.equinox.app_1.2.1.R35x_v20091203.jar
> org.eclipse.ui.workbench_3.5.2.M20100113-0800.jar
> org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar
> sjones@cc0:~/workspace/build.configuration$
>
>
> As you can see, it's looking for a folder for org.eclipse.ui.views, but
> this time through the build it created a .jar instead, breaking the
> assembly.
>
> Is there anything I can try to troubleshoot this?
Re: build fails and then succeeds without me changing anything [message #606070 is a reply to message #540056] Tue, 15 June 2010 15:47 Go to previous message
Sam Jones is currently offline Sam Jones
Messages: 8
Registered: May 2010
Junior Member
Thank you so much! This appears to have been the problem. These plugins were being checked out by Buckminster -- I deleted the offending plugins from my workspace, and have 10+ successful builds in a row now.

Again, thank you very much. This was driving me nuts.
Previous Topic:User less actions
Next Topic:problem with embedded jar
Goto Forum:
  


Current Time: Fri Aug 22 19:46:14 EDT 2014

Powered by FUDForum. Page generated in 0.06461 seconds