User: user57  
  Date: 02/02/16 16:28:05

  Modified:    jboss    fix-workspace.xml
  Log:
   o adding some magic to detect if a fix is needed... could be a bad idea
     not sure just yet
  
  Revision  Changes    Path
  1.2       +36 -2     build/jboss/fix-workspace.xml
  
  Index: fix-workspace.xml
  ===================================================================
  RCS file: /cvsroot/jboss/build/jboss/fix-workspace.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- fix-workspace.xml 17 Feb 2002 00:05:02 -0000      1.1
  +++ fix-workspace.xml 17 Feb 2002 00:28:05 -0000      1.2
  @@ -12,7 +12,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: fix-workspace.xml,v 1.1 2002/02/17 00:05:02 user57 Exp $ -->
  +<!-- $Id: fix-workspace.xml,v 1.2 2002/02/17 00:28:05 user57 Exp $ -->
   
   <project default="main" name="JBoss/Fix Workspace">
   
  @@ -72,8 +72,42 @@
        | (in theory that is).
      -->
   
  -  <target name="fix" depends="init">
  +  <target name="fix-check-lastfix-available" depends="init">
  +    <available file="${module.root}/etc/lastfix" property="fix.have-lastfix"/>
     </target>
  +
  +  <target name="fix-check-lastfix-uptodate" depends="fix-check-lastfix-available" 
if="fix.have-lastfix">
  +    <echo>checking if ip to date...</echo>
  +    <uptodate property="fix.disable"
  +           targetfile="${module.root}/etc/lastfix">
  +      <srcfiles dir="${module.root}" includes="fix-workspace.xml"/>
  +    </uptodate>
  +  </target>
  +
  +  <target name="fix-check-lastfix-create" depends="init" unless="fix.have-lastfix">
  +    <echo>lastfix not found; assuming up to date</echo>
  +    <touch file="${module.root}/etc/lastfix"/>
  +    <property name="fix.disable" value="true"/>
  +  </target>
  +
  +  <target name="fix-check" depends="fix-check-lastfix-available, 
  +                                    fix-check-lastfix-uptodate,
  +                                    fix-check-lastfix-create">
  +  </target>
  +
  +  <target name="fix-finish" depends="init" unless="fix.disable">
  +    <touch file="${module.root}/etc/lastfix"/>
  +  </target>
  +
  +  <target name="fix-uptodate" depends="init" if="fix.disable">
  +    <echo>Your workspace is already up to date.</echo>
  +  </target>
  +
  +  <target name="fix-apply" depends="fix-check" unless="fix.disable">
  +    <echo>Fixing...</echo>
  +  </target>
  +
  +  <target name="fix" depends="fix-apply, fix-finish, fix-uptodate"/>
   
   
     <!-- ================================================================== -->
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to