[Anthill] deployDir

Maciej Zawadzki mbz at urbancode.com
Wed Sep 1 08:33:57 CDT 2004


Dan,

"deployDir" is the name of the parameter that Anthill passes to your 
build script.  The value of this parameter is the path to the project 
specific intranet (available via the browser by clicking on the project 
name).

Any build artifacts that you want to display in the project intranet 
have to be copied there by your build script.  We typically have the 
following in our build scripts:

     <property name="deployDir" location="dist"/>      <!-- passed in by 
Anthill -->

By specifying a default value for "deployDir", we are able to use the 
same build script to run local builds or Anthill builds.  By default all 
build artifacts are placed in dist, but when running under Anthill the 
build artifacts are placed int the location pointed to by "deployDir".

     <!-- 
===================================================================
           Create the jar file(s)
 
=================================================================== -->
     <target name="jars" depends="compile">
         <mkdir dir="${deployDir}"/>

         <jar jarfile="${deployDir}/${name}-${version}.jar"
              basedir="${build.classes.dir}">
         </jar>
     </target>

The above target creates the jar file in the location pointed to by 
"deployDir".


As for checking in you jar file to your repository, you would have to 
handle that on your own.  Perhaps your ANT build script would do this 
part using the cvs tasks that come with ANT.

Hope that helps,

--Maciej



Roehl, Dan wrote:
> Hi,
> 
> I have already rtfm, searched through the examples, as well as searched 
> the list archives and I am still unsure about how to use the deployDir 
> parameter. I would ideally like to have the jar final project made 
> available in the <myServer>/anthill/projects/<myProject> intranet site 
> as well as checked into the <tags> branch in my repository.
> 
>  
> 
> Thanks in advance,
> 
> DJR



More information about the Anthill mailing list