avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: avalon-sandbox/avalon-net/Castle Castle-helper.build
Date Sat, 31 Jan 2004 18:55:41 GMT
hammett     2004/01/31 10:55:41

  Modified:    avalon-net/Castle Castle-helper.build
  Log:
  Correction of build script - compatible with nant 0.84
  
  Revision  Changes    Path
  1.3       +70 -70    avalon-sandbox/avalon-net/Castle/Castle-helper.build
  
  Index: Castle-helper.build
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/avalon-net/Castle/Castle-helper.build,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Castle-helper.build	13 Jan 2004 00:46:19 -0000	1.2
  +++ Castle-helper.build	31 Jan 2004 18:55:41 -0000	1.3
  @@ -2,146 +2,146 @@
   <project name="avalon-castle-helper" xmlnds="http://tempuri.org/nant-vs.xsd">
   
       <target name="check-bin-dir">
  -        <if test="${not property::exists('bin.dir')}">
  +        <ifnot propertyexists="bin.dir">
               <property name="bin.dir" value="bin" readonly="false" />
  -        </if>
  +        </ifnot>
           <mkdir dir="${bin.dir}" />
       </target>
   
       <target name="check-build-debug">
  -        <if test="${not property::exists('build.debug')}">
  +        <ifnot propertyexists="build.debug">
               <fail message="The build debug setting has not been specified." />
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-build-defines">
  -        <if test="${not property::exists('build.defines.csc')}">
  +        <ifnot propertyexists="build.defines.csc">
               <fail message="The build defines for the csc task have not been specified."
/>
  -        </if>
  -        <if test="${not property::exists('build.defines.jsc')}">
  +        </ifnot>
  +        <ifnot propertyexists="build.defines.jsc">
               <fail message="The build defines for the jsc task have not been specified."
/>
  -        </if>
  -        <if test="${not property::exists('build.defines.vbc')}">
  +        </ifnot>
  +        <ifnot propertyexists="build.defines.vbc">
               <fail message="The build defines for the vbc task have not been specified."
/>
  -        </if>
  -        <if test="${not property::exists('build.defines.vjc')}">
  +        </ifnot>
  +        <ifnot propertyexists="build.defines.vjc">
               <fail message="The build defines for the vjc task have not been specified."
/>
  -        </if>
  -        <if test="${not property::exists('build.defines.cl')}">
  +        </ifnot>
  +        <ifnot propertyexists="build.defines.cl">
               <fail message="The build defines for the cl task have not been specified."
/>
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-doc-dir">
  -        <if test="${not property::exists('doc.dir')}">
  +        <ifnot propertyexists="doc.dir">
               <property name="doc.dir" value="doc" readonly="false" />
  -        </if>
  +        </ifnot>
           <mkdir dir="${doc.dir}" />
       </target>
   
       <target name="check-sdkdoc-dir" depends="check-doc-dir">
  -        <if test="${not property::exists('sdkdoc.dir')}">
  +        <ifnot propertyexists="sdkdoc.dir">
               <property name="sdkdoc.dir" value="${doc.dir}/sdk" readonly="false" />
  -        </if>
  +        </ifnot>
           <mkdir dir="${sdkdoc.dir}" />
       </target>
   
       <target name="check-sdkdoc-debug">
  -        <if test="${not property::exists('sdkdoc.debug')}">
  +        <ifnot propertyexists="sdkdoc.debug">
               <fail message="The sdk documentation debug setting has not been specified."
/>
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-bin-dir">
  -        <if test="${not property::exists('current.bin.dir')}">
  +        <ifnot propertyexists="current.bin.dir">
               <fail message="The current binaries directory has not been specified." />
  -        </if>
  +        </ifnot>
           <mkdir dir="${current.bin.dir}" />
       </target>
   
       <target name="check-current-build-debug">
  -        <if test="${not property::exists('current.build.debug')}">
  +        <ifnot propertyexists="current.build.debug">
               <fail message="The current build debug setting has not been specified."
/>
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-build-defines">
  -        <if test="${not property::exists('current.build.defines.csc')}">
  +        <ifnot propertyexists="current.build.defines.csc">
               <fail message="The current build defines for the csc task have not been
specified." />
  -        </if>
  -        <if test="${not property::exists('current.build.defines.jsc')}">
  +        </ifnot>
  +        <ifnot propertyexists="current.build.defines.jsc">
               <fail message="The current build defines for the jsc task have not been
specified." />
  -        </if>
  -        <if test="${not property::exists('current.build.defines.vbc')}">
  +        </ifnot>
  +        <ifnot propertyexists="current.build.defines.vbc">
               <fail message="The current build defines for the vbc task have not been
specified." />
  -        </if>
  -        <if test="${not property::exists('current.build.defines.vjc')}">
  +        </ifnot>
  +        <ifnot propertyexists="current.build.defines.vjc">
               <fail message="The current build defines for the vjc task have not been
specified." />
  -        </if>
  -        <if test="${not property::exists('current.build.defines.cl')}">
  +        </ifnot>
  +        <ifnot propertyexists="current.build.defines.cl">
               <fail message="The current build defines for the cl task have not been specified."
/>
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-sdkdoc-dir">
  -        <if test="${not property::exists('current.sdkdoc.dir')}">
  +        <ifnot propertyexists="current.sdkdoc.dir">
               <fail message="The current sdk document directory has not been specified."
/>
  -        </if>
  +        </ifnot>
           <mkdir dir="${sdkdoc.dir}" />
       </target>
   
       <target name="check-current-sdkdoc-debug">
  -        <if test="${not property::exists('current.sdkdoc.debug')}">
  +        <ifnot propertyexists="current.sdkdoc.debug">
               <fail message="The curernt sdk documentation debug setting has not been
specified." />
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-runtime-config">
  -        <if test="${not property::exists('current.runtime.config')}">
  +        <ifnot propertyexists="current.runtime.config">
               <fail message="The current runtime configuration has not been specified."
/>
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-runtime-version">
  -        <if test="${not property::exists('current.runtime.config')}">
  +        <ifnot propertyexists="current.runtime.config">
               <fail message="The current runtime version has not been specified." />
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-runtime-description">
  -        <if test="${not property::exists('current.runtime.description')}">
  -            <if test="${not property::exists('project.runtime.description')}">
  +        <ifnot propertyexists="current.runtime.description">
  +            <ifnot propertyexists="project.runtime.description">
                   <fail message="The runtime description has not been specified and no
default runtime description is available." />
  -            </if>
  -            <if test="${property::exists('project.runtime.description')}">
  +            </ifnot>
  +            <if propertyexists="project.runtime.description">
                   <property name="current.runtime.description" value="${project.runtime.description}"
readonly="false" />
               </if>
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-build-config">
  -        <if test="${not property::exists('current.build.config')}">
  -            <if test="${not property::exists('project.build.config')}">
  +        <ifnot propertyexists="current.build.config">
  +            <ifnot propertyexists="project.build.config">
                   <fail message="The build configuration has not been specified and no
default build configuration is available." />
  -            </if>
  -            <if test="${property::exists('project.build.config')}">
  +            </ifnot>
  +            <if propertyexists="project.build.config">
                   <property name="current.build.config" value="${project.build.config}"
readonly="false" />
               </if>
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-castle-basedir">
  -        <if test="${not property::exists('castle.basedir')}">
  +        <ifnot propertyexists="castle.basedir">
               <fail message="The castle base directory has not been specified." />
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-castle-assembly" depends="check-current-runtime-config, check-current-runtime-version,
check-current-build-config, check-castle-basedir">
           <available type="File" resource="${castle.basedir}/bin/${current.runtime.config}/${current.runtime.version}/${current.build.config}/Castle.dll"
               property="temp.castle.assembly.available" />
  -        <if test="${not property::exists('temp.castle.assembly.available')}">
  +        <ifnot propertyexists="temp.castle.assembly.available">
               <fail message="The Castle '${current.build.config}' assembly for runtime
'${current.runtime.config}-${current.runtime.version}' is not available." />
  -        </if>
  +        </ifnot>
       </target>
   
       <target name="check-current-runtime-available" depends="check-current-runtime-config,
check-current-runtime-version">
  @@ -153,7 +153,7 @@
       <target name="clean-current-bin-dir" depends="check-current-bin-dir" description="Cleans
the current binaries directory">
           <echo message="Cleaning the ${current.bin.dir} binaries directory." />
           <available type="Directory" resource="${current.bin.dir}" property="temp.current.bin.dir.available"
/>
  -        <if test="${property::exists('temp.current.bin.dir.available')}">
  +        <if propertyexists="temp.current.bin.dir.available">
               <delete dir="${current.bin.dir}" />
           </if>
           <mkdir dir="${current.bin.dir}" />
  @@ -162,7 +162,7 @@
       <target name="clean-current-sdkdoc-dir" depends="check-current-sdkdoc-dir" description="cleaning
the current SDK documentation directory">
           <echo message="Cleaning the ${current.sdkdoc.dir} SDK documentation directory."
/>
           <available type="Directory" resource="${current.sdkdoc.dir}" property="temp.current.sdkdoc.dir.available"
/>
  -        <if test="${property::exists('temp.current.sdkdoc.dir.available')}">
  +        <if propertyexists="temp.current.sdkdoc.dir.available">
               <delete dir="${current.sdkdoc.dir}" />
           </if>
           <mkdir dir="${current.sdkdoc.dir}" />
  @@ -170,7 +170,7 @@
   
       <!-- Targets for setting up the environment -->
       <target name="set-build-configuration" depends="check-current-build-config">
  -        <!--<if test="${not nant::target-exists('set-${current.build.config}-build-configuration')}">-->
  +        <!--<if test="${not nant::target-exists('set-${current.build.config}-build-configuration">-->
           <ifnot targetexists="set-${current.build.config}-build-configuration">
               <fail message="The ${current.build.config} build configuration is not supported
by Avalon-Castle." />
           </ifnot>
  @@ -209,30 +209,30 @@
       </target>
   
       <target name="set-runtime-configuration" depends="check-current-build-config">
  -        <if test="${not property::exists('current.runtime.config')}">
  -            <if test="${not property::exists('nant.settings.currentframework')}">
  +        <ifnot propertyexists="current.runtime.config">
  +            <ifnot propertyexists="nant.settings.currentframework">
                   <fail message="No runtime configuration was specified and the default
NAnt runtime is not available." />
  -            </if>
  +            </ifnot>
   
  -            <!-- <if test="${not nant::target-exists('set-${nant.settings.currentframework}-runtime-configuration')}">
-->
  +            <!-- <if test="${not nant::target-exists('set-${nant.settings.currentframework}-runtime-configuration">
-->
               <ifnot targetexists="set-${nant.settings.currentframework}-runtime-configuration">
                   <fail message="No runtime configuration was specified and the current
runtime (${nant.settings.currentframework}) is not supported by Avalon-Castle." />
               <!-- </if> -->
               </ifnot>
               <call target="set-${nant.settings.currentframework}-runtime-configuration"
 />
  -        </if>
  -        <if test="${not property::exists('current.runtime.version')}">
  -            <if test="${not property::exists('nant.settings.currentframework')}">
  +        </ifnot>
  +        <ifnot propertyexists="current.runtime.version">
  +            <ifnot propertyexists="nant.settings.currentframework">
                   <fail message="No runtime configuration was specified and the default
NAnt runtime is not available." />
  -            </if>
  -            <!-- <if test="${not nant::target-exists('set-${nant.settings.currentframework}-runtime-configuration')}">
-->
  +            </ifnot>
  +            <!-- <if test="${not nant::target-exists('set-${nant.settings.currentframework}-runtime-configuration">
-->
               <ifnot targetexists="set-${nant.settings.currentframework}-runtime-configuration">
                   <fail message="No runtime configuration was specified and the current
runtime (${nant.settings.currentframework}) is not supported by Avalon-Castle." />
               </ifnot>
               <!-- </if> -->
               <call target="set-${nant.settings.currentframework}-runtime-configuration"
/>
  -        </if>
  -        <!-- <if test="${not nant::target-exists('set-${current.runtime.config}-${current.runtime.version}-runtime-configuration')}">
-->
  +        </ifnot>
  +        <!-- <if test="${not nant::target-exists('set-${current.runtime.config}-${current.runtime.version}-runtime-configuration">
-->
           <ifnot targetexists="set-${current.runtime.config}-${current.runtime.version}-runtime-configuration">
               <fail message="The ${current.runtime.config}-${current.runtime.version}
runtime is not supported by Avalon-Castle." />
           </ifnot>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message