jicarilla-site build.xml,NONE,1.1 index.shtml,1.1,NONE

[email protected]
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-site
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13093

Added Files:
	build.xml 
Removed Files:
	index.shtml 
Log Message:
staticmesh-based website. valid xhtml, blah blah.

--- NEW FILE: build.xml ---
<?xml version="1.0"?>

<project default="site" name="SiteMesh-based website build" basedir=".">
    <property file="project.properties"/>

    <target name="init">
        <mkdir dir="target/docs"/>

        <taskdef name="staticmesh"
                classname="uk.co.pols.staticmesh.ant.PageGeneratorTask">
            <classpath>
                <fileset dir="lib">
                    <include name="**/*.jar"/>
                </fileset>
            </classpath>
        </taskdef>
    </target>

    <target name="generate" depends="init">
        <echo>=======================================================================
   Building website in target/docs from src/docs
=======================================================================</echo>

        <staticmesh
                skin="default.vm"
                destDir="target/docs/"
                templateDir="src/staticmesh"
                verbose="true"
                config="src/staticmesh/config.xml">

            <fileset dir="src/docs" casesensitive="yes">
                <include name="**/*.vm"/>
            </fileset>
        </staticmesh>
    </target>

    <target name="site" depends="generate">
        <echo>=======================================================================
   Performing some website hacks
=======================================================================</echo>

        <move file="target/docs/index.html" tofile="target/docs/index.shtml"/>
        <mkdir dir="target/docs/skin"/>
        <copy todir="target/docs/skin">
            <fileset dir="src/skin"/>
        </copy>
    </target>

    <target name="deploy" depends="generate">
        <echo>=======================================================================
   Deploying site using SSH
=======================================================================
 If this fails because the 'scp' task cannot be found, upgrade to
 ant 1.6 or later (if you haven't already), then execute the
 'install-jsch' target to install the required libraries. Then,
 run the deploy target again.
        </echo>

        <antcall target="warn-scp-user"/>
        <antcall target="warn-scp-password"/>

          <scp todir="${scp.user}:${scp.password}@shell.sourceforge.net:~/jicarilla/htdocs">
            <fileset dir="target/docs"/>
          </scp>
    </target>

    <target name="install-jsch">
          <copy todir="${ant.home}/lib" file="lib/jsch-0.1.13.jar"/>
    </target>

    <target name="warn-scp-user" unless="scp.user">
        <fail>
 The username for use with the scp command has not been set! You need to
 invoke ant with the username on the commandline, for example:

            ant -Dscp.user=johndoe -Dscp.password=secr3t#9
        </fail>
    </target>
    <target name="warn-scp-password" unless="scp.password">
        <fail>
 The password for use with the scp command has not been set! You need to
 invoke ant with the password on the commandline, for example:

            ant -Dscp.user=johndoe -Dscp.password=secr3t#9
        </fail>
    </target>
</project>

--- index.shtml DELETED ---



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.