You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by ve...@apache.org on 2012/08/03 16:15:03 UTC
svn commit: r1368972 - /incubator/etch/trunk/examples/helloworld/build.xml
Author: veithm
Date: Fri Aug 3 14:15:03 2012
New Revision: 1368972
URL: http://svn.apache.org/viewvc?rev=1368972&view=rev
Log:
Added build.type switch to HelloWorld example
Avoiding the build of the experimental cpp HelloWorld example
in stable builds
Change-Id: I4d4f9c0ae353bbe140aed0c7c4dd2479e6b911cc
Modified:
incubator/etch/trunk/examples/helloworld/build.xml
Modified: incubator/etch/trunk/examples/helloworld/build.xml
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/examples/helloworld/build.xml?rev=1368972&r1=1368971&r2=1368972&view=diff
==============================================================================
--- incubator/etch/trunk/examples/helloworld/build.xml (original)
+++ incubator/etch/trunk/examples/helloworld/build.xml Fri Aug 3 14:15:03 2012
@@ -46,7 +46,7 @@
<build_component dir="java" />
<build_component dir="csharp" />
<build_component dir="c" />
- <build_component dir="cpp" />
+ <antcall target="component-bindings-experimental" />
</target>
<target name="do-postbuild">
@@ -54,6 +54,18 @@
<target name="do-help">
</target>
+
+ <!-- Experimental Binding examples -->
+ <target name="component-bindings-experimental" depends="component-bindings-experimental-if, component-bindings-experimental-then">
+ </target>
+ <target name="component-bindings-experimental-if">
+ <condition property="is-build-type-experimental">
+ <equals arg1="${build.type}" arg2="experimental" />
+ </condition>
+ </target>
+ <target name="component-bindings-experimental-then" if="is-build-type-experimental">
+ <build_component dir="cpp" />
+ </target>
</project>