Changeset 32753 for other-projects/the-macronizer/trunk/build.xml
- Timestamp:
- 2019-02-07T19:12:06+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/the-macronizer/trunk/build.xml
r32752 r32753 19 19 <property name="lib.dir.exp" location="web/WEB-INF/lib" /> 20 20 <property name="webinf.dir" location="web/WEB-INF" /> 21 <property name="scripts.dir" location="src/scripts-and-sql" /> 21 <!-- Properties for MacroniserLogFileProcessor, use FULL PATHS --> 22 <property name="scripts.dir" location="${basedir}/src/scripts-and-sql" /> 23 <property name="logfileproc.dir" value="${basedir}/logproc"/> 22 24 23 25 <!-- … … 94 96 from the daily macron.log.<date> files to a mysqldb, need to do some setup too --> 95 97 <copy file="${build.dir.exp}/mysql.properties.in" tofile="${build.dir.exp}/WEB-INF/classes/mysql.properties" filtering="true" overwrite="true"/> 96 <chmod file="${scripts.dir}/macronLogToDB.bash" perm="ugo+rx"/> 98 99 <mkdir dir="${logfileproc.dir}"/> 100 97 101 <filter token="macronizer.scripts" value="${scripts.dir}"/> 98 102 <filter token="macronizer.logs" value="${build.dir.exp}/logs"/> 99 103 <copy file="${basedir}/src/scripts-and-sql/cron.in" tofile="${basedir}/src/scripts-and-sql/cron.txt" filtering="true" overwrite="true"/> 104 105 <filter token="logfileproc.exec_folder" value="${build.dir.exp}/WEB-INF/classes"/> <!-- where the util.MacroniserLogProcessor compiled code is --> 106 <filter token="logfileproc.dir" value="${logfileproc.dir}"/> 107 <filter token="jarlibs.folder" value="${build.dir.exp}/WEB-INF/lib"/> 108 <filter token="classes.folder" value="${build.dir.exp}/WEB-INF/classes"/> 109 110 <copy file="${scripts.dir}/macronLogToDB.bash.in" tofile="${scripts.dir}/macronLogToDB.bash" filtering="true" overwrite="true"/> 111 <chmod file="${scripts.dir}/macronLogToDB.bash" perm="ugo+rx"/> 100 112 101 113 <echo>*** Run the target 'logs-to-db-instructions' for instructions on setting up the MacroniserLogFileProcessor***</echo> … … 130 142 - type 'crontab -e' and the editor will open the cronfile 131 143 - append the contents from ${scripts.dir}/cron.txt to the cronfile 144 - save file and exit the editor 145 146 5. If you have email rights on the linux you're working from, 147 type your email into macronLogToDB.bash.in and macronLogToDB.bash 148 to get sent emails on errors. 149 150 6. All going well, you should get output files in the ${logfileproc.dir} 151 folder after the cron job runs each night. 132 152 133 153 ************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.