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 -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<property name="build.compiler" value="extJavac"/>
<ant target="build"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>gwt</id>
<activation>
<property>
<name>gwt.sdk</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<property name="build.compiler" value="extJavac"/>
<ant target="build"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<name>ZXing Appspot-based encoder</name>
<description>GWT-based encoder app hosted at zxing.appspot.com</description>