apache-log4j-site\build.xml : Big Project Ant Script « Ant « Java

Home
Java
1.2D Graphics GUI
2.3D
3.Advanced Graphics
4.Ant
5.Apache Common
6.Chart
7.Class
8.Collections Data Structure
9.Data Type
10.Database SQL JDBC
11.Design Pattern
12.Development Class
13.EJB3
14.Email
15.Event
16.File Input Output
17.Game
18.Generics
19.GWT
20.Hibernate
21.I18N
22.J2EE
23.J2ME
24.JDK 6
25.JNDI LDAP
26.JPA
27.JSP
28.JSTL
29.Language Basics
30.Network Protocol
31.PDF RTF
32.Reflection
33.Regular Expressions
34.Scripting
35.Security
36.Servlets
37.Spring
38.Swing Components
39.Swing JFC
40.SWT JFace Eclipse
41.Threads
42.Tiny Application
43.Velocity
44.Web Services SOA
45.XML
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
SCJP
Java » Ant » Big Project Ant ScriptScreenshots 
apache-log4j-site\build.xml


<!--
 Licensed to the Apache Software Foundation (ASFunder one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

-->
<project name="logging-site" default="usage" basedir="." >

  <property name="svnrepo.url" value="https://svn.apache.org/repos/asf"/>
  <property name="svnsite.url" value="${svnrepo.url}/logging/site/trunk/docs"/>
  <available property="svn-available" file="target/site-deploy/.svn"/>
  

  <target name="usage">
    <echo>
    This file provides services to the Maven build and is not
    intended for independent use.
    </echo>
  </target>

  <target name="checkout-site" unless="svn-available">
    <exec executable="svn">
      <arg value="co"/>
      <arg value="${svnsite.url}"/>
      <arg value="target/site-deploy"/>
    </exec>
  </target>

  <target name="update-site" if="svn-available">
    <exec executable="svn" dir="target/site-deploy" failonerror="true">
      <arg value="update"/>
    </exec>
  </target>

  <target name="post-site" depends="checkout-site, update-site"/>

        <target name="mime=html">
            <exec executable="svn">
    <arg value="propset"/>
                <arg value="svn:mime-type"/>
                <arg value="text/html"/>
                <arg value="${src.html}"/>
            </exec>
        </target>

        <target name="mime=css">
            <exec executable="svn">
    <arg value="propset"/>
                <arg value="svn:mime-type"/>
                <arg value="text/css"/>
                <arg value="${src.css}"/>
            </exec>
        </target>

        <target name="mime=jnlp">
            <exec executable="svn">
    <arg value="propset"/>
                <arg value="svn:mime-type"/>
                <arg value="application/x-java-jnlp-file"/>
                <arg value="${src.jnlp}"/>
            </exec>
        </target>
  
  
  <target name="site-deploy">
    <!-- Add any new files (and generate innocuous warnings for the existing content)  -->
                <delete file="target/site-deploy/svn-commit.tmp~"/>
    <exec executable="bash" dir="target/site-deploy" failonerror="true">
      <arg line='-c "svn add --force *"'/>
    </exec>
                <taskdef name="foreach" classname="net.sf.antcontrib.logic.ForEach" />
                <foreach target="mime=html" param="src.html">
                        <path>
                                <fileset dir="target/site-deploy" includes="**/*.html">
                  <exclude name="log4j/1.2/**/*.html"/>
                  <exclude name="log4cxx/**/*.html"/>
                  <exclude name="log4net/**/*.html"/>
                  <exclude name="chainsaw/**/*.html"/>
                  <exclude name="log4j/companions/component/**/*.html"/>
                  <exclude name="log4j/companions/extras/**/*.html"/>
                  <exclude name="log4j/companions/receivers/**/*.html"/>
                  <exclude name="log4j/companions/zeroconf/**/*.html"/>
                </fileset>
                        </path>
                </foreach>
                <foreach target="mime=css" param="src.css">
                        <path>
                                <fileset dir="target/site-deploy" includes="**/*.css"/>
                        </path>
                </foreach>
                <foreach target="mime=jnlp" param="src.jnlp">
                        <path>
                                <fileset dir="target/site-deploy" includes="**/*.jnlp"/>
                        </path>
                </foreach>
    <!--  requires that SVN_EDITOR, VISUAL or EDITOR being set to edit commit description -->
    <exec executable="svn" dir="target/site-deploy" failonerror="true">
        <arg value="commit"/>
    </exec>
  </target>

</project>

 
Related examples in the same category
1.Ant script for xmlgraphics-commons
2.nutch ant script
3.rhino ant build script
4.apache solr ant script
5.Tomcat ant build script
6.OFBiz ant build script
7.Apache Lenya Build System
8.Apache pivot ant build script
9.XmlSchema ant script
10.xml security
11.velocity tools ant script
12.weka build script
13.xml bean ant script
14.xml graphics common ant script
15.uPortal ant script
16.SmartGWT ant script
17.Build file to fetch maven2 tasks; extracted from (Ant's) fetch.xml
18.Build file to fetch optional libraries for Apache Ant
19.Ant build script
20.Build script for apache-cassandra-0.5.1-src
21.apache-roller-src-4.0.1
22.Build script from apache dbutils
23.Fop build script
24.Google guice ant script
25.GWT ant script
26.hadoop ant build script
27.jakarta jmeter ant script
28.jakarta oro ant script
29.jakarta regexp ant script
30.jedit build script
31.jibx ant build script
32.lucene ant build script
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.