jicarilla-sandbox/buildsystem/install build.xml,NONE,1.1 install.bat,NONE,1.1 install.sh,NONE,1.1

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

Added Files:
	build.xml install.bat install.sh 
Log Message:
implement basic installation and repo management features

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

<project name="Jicarilla BuildSystem" default="jbs:install" basedir=".">
    <target name="jbs:info">
        <echo>
           _______________________________________________________
 The      /  /__/  __   \/  __  | /  ___  |/__/  /  /  /   /  __  |
         /  /__/  /  \__/  /_|  |/  /__/  /__/  /  /  /   /  /_|  |
  ___   /  /  /  /  ___/  ____  /  ____  /  /  /  /  /   /  ____  |
 /  /__/  /  /  |__/  /  /   | /  /   | /  /  /__/  /___/  /   |  |
 \_______/__/\_______/__/    |/__/    |/__/_____/______/__ Buildsystem

 is now being installed into ${jbs.home}...
        </echo>
    </target>

    <target name="jbs:done">
        <echo>
=======================================================================
 Installation complete!
=======================================================================
 If everything went according to plan,
           _______________________________________________________
 The      /  /__/  __   \/  __  | /  ___  |/__/  /  /  /   /  __  |
         /  /__/  /  \__/  /_|  |/  /__/  /__/  /  /  /   /  /_|  |
  ___   /  /  /  /  ___/  ____  /  ____  /  /  /  /  /   /  ____  |
 /  /__/  /  /  |__/  /  /   | /  /   | /  /  /__/  /___/  /   |  |
 \_______/__/\_______/__/    |/__/    |/__/_____/______/__ Buildsystem

 is now installed into ${jbs.home}, and the script tag has been enabled
 in your local ant installation (by copying the BSF and Rhino jars into
 the lib directory of your ant installation).
        </echo>
    </target>

    <target name="jbs:install">
        <property name="jbs.home" value="${user.home}/.jbs"/>
        <property name="jbs.work" value="${jbs.home}/work"/>
        <property name="jbs.backup" value="${jbs.home}/backup"/>
        <property name="jbs.repository.local" value="${jbs.home}/repository"/>

        <property name="jbs.cvs.root" value=":pserver:[email protected]:/cvsroot/jicarilla"/>
        <property name="jbs.cvs.module" value="jicarilla-sandbox/buildsystem"/>
        <property name="jbs.repository.module" value="jicarilla-maven-repository"/>

        <antcall target="jbs:info"/>

        <mkdir dir="${jbs.home}"/>
        <mkdir dir="${jbs.work}"/>
        <mkdir dir="${jbs.backup}"/>
        <move todir="${jbs.backup}">
            <fileset dir="${jbs.home}" defaultexcludes="no">
                <exclude name="backup"/>
                <exclude name="backup/**"/>
            </fileset>
        </move>

        <mkdir dir="${jbs.repository.local}"/>
        <mkdir dir="${jbs.work}/${jbs.cvs.module}"/>
        <mkdir dir="${jbs.work}/${jbs.repository.module}"/>

        <cvs cvsRoot="${jbs.cvs.root}"
                package="${jbs.cvs.module}"
                dest="${jbs.work}"
                quiet="true"
                failonerror="true"/>

        <move todir="${jbs.home}">
            <fileset dir="${jbs.work}/${jbs.cvs.module}"
                     defaultexcludes="no">
            </fileset>
        </move>

        <cvs cvsRoot="${jbs.cvs.root}"
                package="${jbs.repository.module}"
                dest="${jbs.work}"
                quiet="true"
                failonerror="true"/>

        <move todir="${jbs.repository.local}">
            <fileset dir="${jbs.work}/${jbs.repository.module}"
                     defaultexcludes="no">
            </fileset>
        </move>

        <copy todir="${ant.home}/lib" file="${jbs.repository.local}/bsf/jars/bsf-2.3.0.jar"/>
        <copy todir="${ant.home}/lib" file="${jbs.repository.local}/js/jars/js.jar"/>

        <antcall target="jbs:done"/>
    </target>
</project>
--- NEW FILE: install.bat ---
@echo off

echo 'Now attempting to launch the ant-based jicarilla installer...'
echo '(in order for this to work, you need to have Ant 1.5 or later'
echo 'on your PATH, as well as the "cvs" command)'
echo '.............................................................'

ant

--- NEW FILE: install.sh ---
#! /bin/sh

echo 'Now attempting to launch the ant-based jicarilla installer...'
echo '(in order for this to work, you need to have Ant 1.5 or later'
echo 'on your PATH, as well as the "cvs" command)'
echo '.............................................................'

ant



-------------------------------------------------------
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.