Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use system version of Maven (M2_HOME).

  • Loading branch information...
commit e792e60f652ac8f6c7858416c96e703882e50866 1 parent 2e27c2b
@jharting jharting authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 dist/build.xml
View
4 dist/build.xml
@@ -6,7 +6,8 @@
<path id="maven-ant-tasks.classpath" path="${parent.dir}/lib/maven-ant-tasks.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
- <property name="maven.dir" location="${parent.dir}/lib/maven" />
+ <property environment="env" />
+ <property name="maven.dir" location="${env.M2_HOME}" />
<target name="weld.dir.input" unless="weld.dir">
<input message="Path to Weld Core source directory" addproperty="weld.dir" />
@@ -19,6 +20,7 @@
<target name="setup" depends="weld.dir.input, weld.version.input">
<fail unless="weld.dir" message="You must specify the weld directory with -Dweld.dir=~/workspace/weld" />
<fail unless="weld.version" message="You must specify the weld.version as a property" />
+ <fail unless="env.M2_HOME" message="You must set M2_HOME properly" />
<property name="examples.dir" value="${weld.dir}/examples" />
<property name="refdoc.dir" value="${weld.dir}/docs/reference" />
Please sign in to comment.
Something went wrong with that request. Please try again.