summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2011-08-16 16:35:45 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2011-08-16 16:43:20 -0400
commita4d75500ddd757720a8ed658c42d53f3eb7d6613 (patch)
tree56e011e56ff4819a668a49bdafac3752387c049b
parentb437670c588c3323ae93fdec5c794255ff3cc96d (diff)
downloadeclipse.platform.swt-a4d75500ddd757720a8ed658c42d53f3eb7d6613.tar.gz
eclipse.platform.swt-a4d75500ddd757720a8ed658c42d53f3eb7d6613.tar.xz
eclipse.platform.swt-a4d75500ddd757720a8ed658c42d53f3eb7d6613.zip
check for changes when compiling java source
-rw-r--r--bundles/org.eclipse.swt/buildSWT.xml17
1 files changed, 16 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/buildSWT.xml b/bundles/org.eclipse.swt/buildSWT.xml
index a0237f4f17..06e0fc57a1 100644
--- a/bundles/org.eclipse.swt/buildSWT.xml
+++ b/bundles/org.eclipse.swt/buildSWT.xml
@@ -383,7 +383,18 @@
<fail if="m_fail" message="Failed"/>
</target>
- <target name="check_compilation">
+ <target name="check_source_changed" unless="source_changed">
+ <!-- Check for changes -->
+ <exec dir="${repo.src}" executable="git" failonerror="false" outputproperty="diffs">
+ <arg line="diff compile_${TAG}"/>
+ </exec>
+ <condition property="source_changed">
+ <length string="${diffs}" trim="true" when="greater" length="0"/>
+ </condition>
+ <echo>Has source changes: ${source_changed} checked against compile_${TAG}</echo>
+ </target>
+
+ <target name="check_compilation" depends="check_source_changed" if="source_changed">
<property name="tmpdir" value="${tmphome}/check.compile.${TAG}"/>
<property name="projectDir" value="${repo.src}/bundles/org.eclipse.swt"/>
<property name="buildDir" value="${tmpdir}/build"/>
@@ -431,6 +442,10 @@
</antcall>
-->
+ <exec dir="${repo.src}" executable="git" failonerror="true">
+ <arg line="tag -f compile_${TAG}"/>
+ </exec>
+
<delete dir="${tmpdir}" quiet="true"/>
</target>