Only invoke GWT tools if gwt.sdk is defined

git-svn-id: https://zxing.googlecode.com/svn/trunk@2919 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-11-24 18:41:45 +00:00
parent 1a77226030
commit 65747f5178

View file

@ -38,28 +38,38 @@
<!-- TODO use Maven GWT plugin to actually build this --> <!-- TODO use Maven GWT plugin to actually build this -->
<build> <profiles>
<plugins> <profile>
<plugin> <id>gwt</id>
<groupId>org.apache.maven.plugins</groupId> <activation>
<artifactId>maven-antrun-plugin</artifactId> <property>
<executions> <name>gwt.sdk</name>
<execution> </property>
<phase>compile</phase> </activation>
<configuration> <build>
<target> <plugins>
<property name="build.compiler" value="extJavac"/> <plugin>
<ant target="build"/> <groupId>org.apache.maven.plugins</groupId>
</target> <artifactId>maven-antrun-plugin</artifactId>
</configuration> <executions>
<goals> <execution>
<goal>run</goal> <phase>compile</phase>
</goals> <configuration>
</execution> <target>
</executions> <property name="build.compiler" value="extJavac"/>
</plugin> <ant target="build"/>
</plugins> </target>
</build> </configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<name>ZXing Appspot-based encoder</name> <name>ZXing Appspot-based encoder</name>
<description>GWT-based encoder app hosted at zxing.appspot.com</description> <description>GWT-based encoder app hosted at zxing.appspot.com</description>