Project

General

Profile

Revision 2052

Added by sgarg over 16 years ago

Added target for installing skins. Target name is install-skin. It is dependent on init. It take skin name as input from user, creates a directory in skins directory and copies files to that directory.

View differences:

build.xml
87 87
      <property name="mcanotherpassword" value=""/>
88 88

  
89 89
      <property name="debug" value="on" />
90
      <property name="debuglevel" value="55" />
90
      <property name="debuglevel" value="100" />
91 91

  
92 92
      <property name="morphosourcedir" value="../morpho" />
93 93
      <property name="defaultcontenttype" value="application/octet-stream" />
......
518 518
      <echo message="Install Registry completed." />
519 519
   </target>
520 520

  
521
   <target name="install-skin" depends="init" 
522
            description="Install a Skin">
523

  
524
      <input message="Please enter name of the skin" 
525
             addproperty="skin-name"/>
526

  
527
      <mkdir dir="${installdir}/style/skins/${skin-name}" />
528
      <copy todir="${installdir}/style/skins/${skin-name}" filtering="yes">
529
       <fileset dir="lib/style/skins/${skin-name}">
530
         <include name="*.*"/>
531
       </fileset>
532
      </copy>
533

  
534
      <echo message="Install Skin completed." />
535
   </target>
536

  
521 537
   <target name="war" depends="warPrepare,warMSSQL"
522 538
            description="Create a web archive (WAR) for servlet deployment">
523 539
       <war destfile="${build.dir}/${context}.war" 
......
710 726

  
711 727
   <target name="clean" depends="init"
712 728
            description="deletes build dir and any files copied to cvs sandbox by build process (jars, xsl) Currently *not* schema/DTDs">
729
       <delete dir="/usr/tomcat/webapps/knb-test" />
730
       <delete file="/usr/tomcat/webapps/knb-test.war" />
713 731
       <delete dir="${build.dir}" />
714 732
       <delete file="lib/httpclient.jar" />
715 733
       <delete file="lib/utilities.jar" />

Also available in: Unified diff