getting org.eclipse.core.resources The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes during RTC build using headless workspace
Hi to all, I'm facing a very annoying problem, in build process of our developers team.
Our conf is: Win 7 professional 64-bit, RAD v 8.5.5, RTC 4.0.4
we use the jazz build system to produce our JARs and EARs, running an ant task that does the following:
<arg value="accept" />
............ accept parms........
</exec>
<property name="build.id" value="${rtc.stream}.1.00.${build.number}.${builddatetime}"/>
<manifest file="${projectlocation}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Implementation-Version" value="${build.id}"/>
<attribute name="Project-Location" value="${projectlocation}"/>
</manifest>
<exec executable="${runAnt}" failonerror="true" vmlauncher="false">
<env key="workspace" value="${sandbox.ws}" />
<arg value="-Dear.file.name=${ear.file.name}" />
<arg value="-Drtc.root.project=${rtc.root.project}" />
<arg value="-Drtc.proj.build=${rtc.proj.build}" />
<arg value="-Dbuild.type=${build.type}" />
<arg value="-Dbuild.mode=${build.mode}" />
<arg value="-file" />
<arg value="${sandbox.ws}/AntBuild/ant/ant.build/standard-targets.xml" />
<arg value="makeEar" />
</exec>
</target>
and this is the content of <makeEar> task
<target name="makeEar" depends="buildWspc" >
<earExport failonerror="true" refresh="true" exportsource="false"
earprojectname="${rtc.root.project}" earexportfile="${ear.file.name}" overwrite="true" />
</target>
<target name="buildWspc" >
<setDebugInfo debuginfo="true" propertyName="settings" />
<eclipse.refreshLocal resource="${rtc.proj.build}" depth="infinite" />
<eclipse.incrementalBuild project="${rtc.proj.build}" kind="clean" />
<projectBuild projectName="${rtc.proj.build}" buildType="Full" failOnError="true" debugCompilation="true" />
</target>
ENTRY org.eclipse.core.resources 2 10035 2014-04-04 11:44:19.974
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
or, as well
ENTRY com.ibm.team.filesystem.client 4 1000 2014-04-04 09:45:13.099
!MESSAGE Status ERROR: com.ibm.team.filesystem.client code=0 Job Broadcasting local changes has been in state 1 for too long null
and the build process hangs for a lot of minutes (6-15 minutes), seemingly doing nothing.
Any help is appreciated
Thanks in advance
Ugo
Our conf is: Win 7 professional 64-bit, RAD v 8.5.5, RTC 4.0.4
we use the jazz build system to produce our JARs and EARs, running an ant task that does the following:
- accept from stream, by executing scm.exe with accept parms, using ant task <exec>:
<arg value="accept" />
............ accept parms........
</exec>
- modify manifest file of the Web/Java module to write some useful info's (number of release, build timestamp) using ant task <manifest>
<property name="build.id" value="${rtc.stream}.1.00.${build.number}.${builddatetime}"/>
<manifest file="${projectlocation}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Implementation-Version" value="${build.id}"/>
<attribute name="Project-Location" value="${projectlocation}"/>
</manifest>
-
builds the project: this is done calling from the ant procedure, the runtant.bat command provided by RAD installation, and passing as input a task ant that use <buildProject>.(I'm attaching only the EAR building, but the Jar build process is similar).
<exec executable="${runAnt}" failonerror="true" vmlauncher="false">
<env key="workspace" value="${sandbox.ws}" />
<arg value="-Dear.file.name=${ear.file.name}" />
<arg value="-Drtc.root.project=${rtc.root.project}" />
<arg value="-Drtc.proj.build=${rtc.proj.build}" />
<arg value="-Dbuild.type=${build.type}" />
<arg value="-Dbuild.mode=${build.mode}" />
<arg value="-file" />
<arg value="${sandbox.ws}/AntBuild/ant/ant.build/standard-targets.xml" />
<arg value="makeEar" />
</exec>
</target>
and this is the content of <makeEar> task
<target name="makeEar" depends="buildWspc" >
<earExport failonerror="true" refresh="true" exportsource="false"
earprojectname="${rtc.root.project}" earexportfile="${ear.file.name}" overwrite="true" />
</target>
<target name="buildWspc" >
<setDebugInfo debuginfo="true" propertyName="settings" />
<eclipse.refreshLocal resource="${rtc.proj.build}" depth="infinite" />
<eclipse.incrementalBuild project="${rtc.proj.build}" kind="clean" />
<projectBuild projectName="${rtc.proj.build}" buildType="Full" failOnError="true" debugCompilation="true" />
</target>
- postbuild meaningless activities
ENTRY org.eclipse.core.resources 2 10035 2014-04-04 11:44:19.974
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
or, as well
ENTRY com.ibm.team.filesystem.client 4 1000 2014-04-04 09:45:13.099
!MESSAGE Status ERROR: com.ibm.team.filesystem.client code=0 Job Broadcasting local changes has been in state 1 for too long null
and the build process hangs for a lot of minutes (6-15 minutes), seemingly doing nothing.
Any help is appreciated
Thanks in advance
Ugo