Ignore:
Timestamp:
2017-09-12T17:19:04+12:00 (7 years ago)
Author:
rmw36
Message:

Macronizer changes: 1. adding an ethical disclaimer to the main web page (temporarily still in English for the Maori jsp file too, but Te Taka will be translating this.) 2. Adding more logging to the macronizer. This required setting up a log4j.properties file (and adding its jar file copied from GS3), and modifying the existing java code DirectInput and FileUpload to make calls to logger. Modifications to build.xml to copy the new template log4j.properties.in file into web/WEB-INF/classes where the log4j.props needs to live. 3. Corrected the svn mime-type property on build.xml so that it's no longer mistaken for a binary file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/the-macronizer/trunk/build.xml

    • Property svn:mime-type changed from application/xml to text/xml
    r30063 r31962  
    99  <property name="build.dir.exp"   location="web" />
    1010  <property name="lib.dir.exp"  location="web/WEB-INF/lib" />
     11  <property name="webinf.dir"  location="web/WEB-INF" />
    1112 
    1213  <!--
     
    4041  </target>
    4142   
    42   <target depends="init" name="build">
     43  <target name="build" depends="init">
    4344    <javac source="${javac.source}" target="${javac.target}" debug="${javac.debug}"
    4445       encoding="utf-8"
     
    4950    <path refid="classpath.exp"/>
    5051    <pathelement location="src/jars/servlet-api.jar"/>
    51     <pathelement path="src/java"/>           
     52    <pathelement path="src/java"/>
     53    <pathelement path="webinf.dir"/>
    5254      </classpath>
    5355    </javac>
     56
     57    <!-- http://ant.apache.org/manual/Tasks/copy.html
     58     By default, files are only copied if the source file is newer than the destination file,
     59     or when the destination file does not exist. However, you can explicitly overwrite files
     60     with the overwrite attribute.-->
     61    <copy file="${build.dir.exp}/log4j.properties.in" tofile="/greenstone/greenstone3/web/WEB-INF/classes/log4j.properties"/>
     62
     63    <!-- mkdir Creates a directory. Also non-existent parent directories are created,
     64     when necessary. Does nothing if the directory already exist. -->
     65    <mkdir dir="${build.dir.exp}/logs"/>
    5466  </target>
    5567
    5668   
    57   <target depends="build" name="war">
     69  <target name="war" depends="build">
    5870    <jar destfile="${dist.filename.exp}"> 
    5971      <fileset dir="${build.dir.exp}" />
Note: See TracChangeset for help on using the changeset viewer.