Changeset 2024

Show
Ignore:
Timestamp:
01/15/09 22:13:14
Author:
douglm
Message:

Try different loggers and listeners for ant

Set level for echo task

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build.xml

    r2014 r2024  
    6363    <loadfile property="org.bedework.README" 
    6464              srcFile="${org.bedework.project.bedework}/docs/README"/> 
    65     <echo message="${org.bedework.README}" /> 
     65    <echo level="info" message="${org.bedework.README}" /> 
    6666  </target> 
    6767 
    6868  <target name="usage" depends="init" 
    6969          description="Describe targets and their usage"> 
    70     <echo message="As distributed the package should be ready to go."/> 
    71     <echo message="Ensure ant is on your path, (a version is in the" /> 
    72     <echo message="package)"/> 
    73     <echo message=""/> 
    74     <echo message="First in one window do"/> 
    75     <echo message="    ant hsqldb"/> 
    76     <echo message="This will start the hsqldb server ready for the "/> 
    77     <echo message="application."/> 
    78     <echo message=""/> 
    79     <echo message="In another window do"/> 
    80     <echo message="    ant tomcatstart"/> 
    81     <echo message=""/> 
    82     <echo message="Once tomcat is running you should be able to go to a"/> 
    83     <echo message="browser and connect to"/> 
    84     <echo message="    http://localhost:8080/bedework"/> 
    85     <echo message="and follow the instructions."/> 
    86     <echo message=""/> 
    87     <echo message="To build the calendar do"/> 
    88     <echo message="    ant deploy    or "/> 
    89     <echo message="    ant deploy.debug "/> 
    90     <echo message="which does a build and deploy of all components"/> 
    91     <echo message=""/> 
    92     <echo message="To rebuild the calendar do"/> 
    93     <echo message="    ant clean.deploy    or "/> 
    94     <echo message="    ant clean.deploy.debug "/> 
    95     <echo message="which does a clean, build and deploy of all components"/> 
    96     <echo message=""/> 
    97     <echo message="See documentation in the docs directory or on bedework.org"/> 
    98     <echo message="for instructions on creating a locally configured calendar application"/> 
    99     <echo message=""/> 
     70    <echo level="info" message="As distributed the package should be ready to go."/> 
     71    <echo level="info" message="Ensure ant is on your path, (a version is in the" /> 
     72    <echo level="info" message="package)"/> 
     73    <echo level="info" message=""/> 
     74    <echo level="info" message="First in one window do"/> 
     75    <echo level="info" message="    ant hsqldb"/> 
     76    <echo level="info" message="This will start the hsqldb server ready for the "/> 
     77    <echo level="info" message="application."/> 
     78    <echo level="info" message=""/> 
     79    <echo level="info" message="In another window do"/> 
     80    <echo level="info" message="    ant tomcatstart"/> 
     81    <echo level="info" message=""/> 
     82    <echo level="info" message="Once tomcat is running you should be able to go to a"/> 
     83    <echo level="info" message="browser and connect to"/> 
     84    <echo level="info" message="    http://localhost:8080/bedework"/> 
     85    <echo level="info" message="and follow the instructions."/> 
     86    <echo level="info" message=""/> 
     87    <echo level="info" message="To build the calendar do"/> 
     88    <echo level="info" message="    ant deploy    or "/> 
     89    <echo level="info" message="    ant deploy.debug "/> 
     90    <echo level="info" message="which does a build and deploy of all components"/> 
     91    <echo level="info" message=""/> 
     92    <echo level="info" message="To rebuild the calendar do"/> 
     93    <echo level="info" message="    ant clean.deploy    or "/> 
     94    <echo level="info" message="    ant clean.deploy.debug "/> 
     95    <echo level="info" message="which does a clean, build and deploy of all components"/> 
     96    <echo level="info" message=""/> 
     97    <echo level="info" message="See documentation in the docs directory or on bedework.org"/> 
     98    <echo level="info" message="for instructions on creating a locally configured calendar application"/> 
     99    <echo level="info" message=""/> 
    100100  </target> 
    101101 
     
    108108              location="${user.home}/bedework.build.properties" /> 
    109109 
    110     <echo message="Load user properties from ${org.bedework.user.build.properties}" /> 
     110    <echo level="info" message="Load user properties from ${org.bedework.user.build.properties}" /> 
    111111 
    112112    <!-- Load user property definition overrides --> 
  • trunk/build/quickstart/build.xml

    r1944 r2024  
    3939  <target name="usage" depends="init" 
    4040          description="Describe targets and their usage"> 
    41     <echo message="As distributed the package should be ready to go."/> 
    42     <echo message="Ensure ant is on your path, (a version is in the" /> 
    43     <echo message="package)"/> 
    44     <echo message=""/> 
    45     <echo message="First in one window do"/> 
    46     <echo message="    ant hsqldb"/> 
    47     <echo message="This will start the hsqldb server ready for the "/> 
    48     <echo message="application."/> 
    49     <echo message=""/> 
    50     <echo message="In another window do"/> 
    51     <echo message="    ant tomcatstart"/> 
    52     <echo message=""/> 
    53     <echo message="Once tomcat is running you should be able to go to a"/> 
    54     <echo message="browser and connect to"/> 
    55     <echo message="    http://localhost:8080/bedework"/> 
    56     <echo message="and follow the instructions."/> 
    57     <echo message=""/> 
    58     <echo message="To build the calendar do"/> 
    59     <echo message="    ant deploy    or "/> 
    60     <echo message="    ant deploy.debug "/> 
    61     <echo message="which does a build and deploy of all components"/> 
    62     <echo message=""/> 
    63     <echo message="To rebuild the calendar do"/> 
    64     <echo message="    ant clean.deploy    or "/> 
    65     <echo message="    ant clean.deploy.debug "/> 
    66     <echo message="which does a clean, build and deploy of all components"/> 
    67     <echo message=""/> 
    68     <echo message="See documentation in the docs directory or on bedework.org"/> 
    69     <echo message="for instructions on creating a locally configured calendar application"/> 
    70     <echo message=""/> 
     41    <echo level="info" message="As distributed the package should be ready to go."/> 
     42    <echo level="info" message="Ensure ant is on your path, (a version is in the" /> 
     43    <echo level="info" message="package)"/> 
     44    <echo level="info" message=""/> 
     45    <echo level="info" message="First in one window do"/> 
     46    <echo level="info" message="    ant hsqldb"/> 
     47    <echo level="info" message="This will start the hsqldb server ready for the "/> 
     48    <echo level="info" message="application."/> 
     49    <echo level="info" message=""/> 
     50    <echo level="info" message="In another window do"/> 
     51    <echo level="info" message="    ant tomcatstart"/> 
     52    <echo level="info" message=""/> 
     53    <echo level="info" message="Once tomcat is running you should be able to go to a"/> 
     54    <echo level="info" message="browser and connect to"/> 
     55    <echo level="info" message="    http://localhost:8080/bedework"/> 
     56    <echo level="info" message="and follow the instructions."/> 
     57    <echo level="info" message=""/> 
     58    <echo level="info" message="To build the calendar do"/> 
     59    <echo level="info" message="    ant deploy    or "/> 
     60    <echo level="info" message="    ant deploy.debug "/> 
     61    <echo level="info" message="which does a build and deploy of all components"/> 
     62    <echo level="info" message=""/> 
     63    <echo level="info" message="To rebuild the calendar do"/> 
     64    <echo level="info" message="    ant clean.deploy    or "/> 
     65    <echo level="info" message="    ant clean.deploy.debug "/> 
     66    <echo level="info" message="which does a clean, build and deploy of all components"/> 
     67    <echo level="info" message=""/> 
     68    <echo level="info" message="See documentation in the docs directory or on bedework.org"/> 
     69    <echo level="info" message="for instructions on creating a locally configured calendar application"/> 
     70    <echo level="info" message=""/> 
    7171  </target> 
    7272 
     
    124124           target="build" /> 
    125125    <tstamp prefix="endbuild" /> 
    126     <echo message="=================> Build finished at ${endbuild.TODAY}" /> 
     126    <echo level="info" message="=================> Build finished at ${endbuild.TODAY}" /> 
    127127  </target> 
    128128 
     
    151151    </tstamp> 
    152152 
    153     <echo message="=================> deploy.debug finished at ${deploydebug.time}" /> 
     153    <echo level="info" message="=================> deploy.debug finished at ${deploydebug.time}" /> 
    154154  </target> 
    155155 
  • trunk/build/quickstart/linux/bw

    r2008 r2024  
    66# 
    77 
    8 if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ] ; then 
    9   errorUsage "JAVA_HOME is not defined correctly for bedework." 
    10 fi 
    11  
    128ANT_HOME=`dirname "$PRG"`/apache-ant-1.7.0 
    139ANT_HOME=`cd "$ANT_HOME" && pwd` 
    1410 
    15 echo "" 
     11#ant_listener="-listener org.apache.tools.ant.listener.Log4jListener" 
     12#ant_xmllogfile="-DXmlLogger.file=log.xml" 
     13#ant_logger="-logger org.apache.tools.ant.XmlLogger" 
     14 
     15ant_listener= 
     16ant_xmllogfile= 
     17ant_logger= 
     18 
    1619echo "" 
    1720echo "  Bedework Calendar System" 
     
    4952  exit 1 
    5053} 
     54 
     55if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ] ; then 
     56  errorUsage "JAVA_HOME is not defined correctly for bedework." 
     57fi 
    5158 
    5259saveddir=`pwd` 
     
    130137 
    131138CLASSPATH=$ANT_HOME/lib/ant-launcher.jar 
     139CLASSPATH=$CLASSPATH:$QUICKSTART_HOME/bedework/build/quickstart/antlib 
     140CLASSPATH=$CLASSPATH:$QUICKSTART_HOME/bedework/applib/log4j-1.2.8.jar 
    132141 
    133 $JAVA_HOME/bin/java -classpath $CLASSPATH $offline -Dant.home=$ANT org.apache.tools.ant.launch.Launcher $BWCONFIG $* 
     142$JAVA_HOME/bin/java -classpath $CLASSPATH $ant_xmllogfile $offline -Dant.home=$ANT org.apache.tools.ant.launch.Launcher $BWCONFIG $ant_listener $ant_logger $*