SourceForge.net Logo

Files can be found at http://sourceforge.net/projects/jtaskdefs/

A complete description of Ant is here: http://ant.apache.org

The original files are here: http://www.arrizza.com/taskdefs/taskdefs.html


Documentation for jTaskdefs

Table of Contents

C#Compile .Net Solutions
VC6Compile C/C++ v6.0 .dsp files
VC7Compile C/C++ v7.0 .sln files
VB6Compile Visual Basic v6.0 .vbp files
regasmrun RegAsm
nunitrun NUnit
vbunitrun VBUnit

C#

top

This taskdef compiles a C# solution.
NameRequired?DefaultPropertyNotes
projectrootfoldernocurrent dirCS_ROOTthe folder where the project folders are.
projectfoldernotargetnamenoneThe project folder is assumed to have the same name as the ant target
projectnotargetname.slnnoneThe project file is assumed to have the same name as the ant target
buildmodenoreleaseCSBUILDMODEtypically release or debug
compilerfoldernononeCSCOMPILERFOLDERthe folder where devenv.exe can be found
failonerrornotruenoneif true, compilation stops on first failure.
logfilenologfile.txtCSLOGFILEall compilation output is redirected to this file
targetsnotargetname.slnnonea fileset indicating which .sln to build


VC6

top

This taskdef compiles a VC6 C++ solution.
NameRequired?DefaultPropertyNotes
projectrootfoldernocurrent dirVC6_ROOTthe folder where the project folders are.
projectfoldernotargetnamenoneThe project folder is assumed to have the same name as the ant target
projectnotargetname.dspnoneThe project file is assumed to have the same name as the ant target
buildmodenoreleaseVC6BUILDMODEtypically release or debug;
compilerfoldernononeVC6COMPILERFOLDERthe folder where msdev.exe can be found
failonerrornotruenoneif true, compilation stops on first failure.
logfilenonullVC6LOGFILEall compilation output is redirected to this file
targetsnotargetname.dspnonea fileset indicating which .dsp to build
rebuildnotruenonetrue to rebuild, false to just build

Logfile

All output from the compilation goes to standard output (Don't forget about ant's facility for naming a listener task on the command line! See Listeners and Loggers at http://ant.apache.org/manual/index.html ) If you use a property
    <property name='VC6LOGFILE'  value='vc6out.txt' />
all vc6 task output will go to that file instead. Using a logfile attribute in a target override the property and direct all output to the given file. This example shows that the output from testvc6_3 target will go to jaa3.txt and the output from testvc6_4 will go to jaa4.txt:
  <target name='testvc6_3'  depends='init' >
      <vc6  buildmode='${mode}' projectrootfolder='${srcdir}' logfile='jaa3.txt' rebuild='${rebuild}'>
         <targets dir='${srcdir}' includes='**/atest3.dsp' />
      </vc6>
  </target>
  <target name='testvc6_4'  depends='init4' >
      <vc6  buildmode='${mode}' projectrootfolder='${srcdir}' logfile='jaa4.txt' rebuild='${rebuild}'>
         <targets dir='${srcdir}' includes='**/atest4.dsp' />
      </vc6>
  </target>

Targets

Here is an example of the Targets fileset. Given a directory structure like this:
    D:\projects\test\ant_vc6\
                             \atest1\atest1.dsp
                             \atest2\atest2.dsp
                             \atest3\atest3.dsp
Then this build.xml will compile all the .dsp's
      <project name='testvc'
               default='testvc6'
               basedir='.'>
        <taskdef name='vc6'       classname='com.arrizza.ant.taskdefs.VC6' />

          <!--  ==================================== -->
        <target name='init'>
          <property name='srcdir'  value='d:/projects/test/ant_vc6' />
          <property name='mode'    value='debug' />
        </target>

       <target name='testvc6'        depends='init'>
            <vc6  buildmode='${mode}' projectrootfolder='${srcdir}'>
               <targets dir='${srcdir}' includes='**/*.dsp' />
            </vc6>
        </target>
      </project>
The output will look like this:
    D:\projects\test\ant_vc6>ant -v
    Apache Ant version 1.5.1 compiled on October 2 2002
    Buildfile: build.xml
    Detected Java version: 1.4 in: E:\tools\jdk\jre
    Detected OS: Windows 2000
    parsing buildfile build.xml with URI = file:D:/projects/test/ant_vc6/build.xml
    Project base dir set to: D:\projects\test\ant_vc6
    Build sequence for target `testvc6' is [init, testvc6]
    Complete build sequence is [init, testvc6]
    
    init:
    
    testvc6:
          [vc6] Command= msdev.exe /out logfile.txt D:\projects\test\ant_vc6\atest1\atest1.dsp /make "all - debug"
     /rebuild
          [vc6] Command= msdev.exe /out logfile.txt D:\projects\test\ant_vc6\atest2\atest2.dsp /make "all - debug"
     /rebuild
          [vc6] Command= msdev.exe /out logfile.txt D:\projects\test\ant_vc6\atest3\atest3.dsp /make "all - debug"
     /rebuild
    
    BUILD SUCCESSFUL
    Total time: 6 seconds
    D:\projects\test\ant_vc6>

VC7

top

This taskdef compiles a VC7 C++ solution.
NameRequired?DefaultPropertyNotes
projectrootfoldernocurrent dirVC7_ROOTthe folder where the project folders are.
projectfoldernotargetnamenoneThe project folder is assumed to have the same name as the ant target
projectnotargetname.slnnoneThe project file is assumed to have the same name as the ant target
buildmodenoreleaseVC7BUILDMODEtypically release or debug;
compilerfoldernononeVC7COMPILERFOLDERthe folder where devenv.exe can be found
failonerrornotruenoneif true, compilation stops on first failure.
logfilenologfile.txtVC7LOGFILEall compilation output is redirected to this file
targetsnotargetname.slnnonea fileset indicating which .sln to build
rebuildnotruenonetrue to rebuild, false to just build
See the vc6 taskdef for an example of using the Targets parameter.


VB6

top

This taskdef compiles a VB6 project.
NameRequired?DefaultPropertyNotes
projectrootfoldernocurrent dirVB6_ROOTthe folder where the project folders are.
projectfoldernotargetnamenoneThe project folder is assumed to have the same name as the ant target
projectnotargetname.vbpnoneThe project file is assumed to have the same name as the ant target
compilerfoldernononeVB6COMPILERFOLDERthe folder where vb6.exe can be found
failonerrornotruenoneif true, compilation stops on first failure.
logfilenologfile.txtVB6LOGFILEall compilation output is redirected to this file
targetsnotargetname.vbpnonea fileset indicating which .vbp to build


RegAsm

top

Not much to say at this time


NUnit

top

Not much to say at this time


VBUnit

top

Not much to say at this time