Skip to content

Instantly share code, notes, and snippets.

@ThomasWeinert
Created June 3, 2018 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasWeinert/d632ad9a836293c08ff9f2193d94a2b1 to your computer and use it in GitHub Desktop.
Save ThomasWeinert/d632ad9a836293c08ff9f2193d94a2b1 to your computer and use it in GitHub Desktop.

libary.xml

<project name="buildlibrary" default="hello">
  <target name="hello" hidden="yes">
    <echo message="Hello World!"/>
  </target>
</project>

build.xml

<project name="A Project" default="hello">

  <import file="library.xml"/>

  <target name="hello" depends="buildlibrary.hello"/>

</project>

Targets from the imported file are prefixed with the name from that file.

@ThomasWeinert
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment