| | |
| | | <property name="distribution.zipfile" value="gitblit-${gb.version}.zip" />
|
| | | <property name="distribution.warfile" value="gitblit-${gb.version}.war" />
|
| | | <property name="fedclient.zipfile" value="fedclient-${gb.version}.zip" />
|
| | | <property name="rpcclient.zipfile" value="rpcclient-${gb.version}.zip" />
|
| | | <property name="manager.zipfile" value="manager-${gb.version}.zip" />
|
| | | </target>
|
| | |
|
| | |
|
| | |
| | | <jar jarfile="${project.deploy.dir}/${project.jar}">
|
| | | <fileset dir="${project.build.dir}">
|
| | | <include name="**/*" />
|
| | | <exclude name="com/gitblit/client/**" />
|
| | | </fileset>
|
| | | <fileset dir="${project.resources.dir}">
|
| | | <exclude name="thumbs.db" />
|
| | |
| | | <arg value="%FEDCLIENT%=${fedclient.zipfile}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%RPCCLIENT%=${rpcclient.zipfile}" />
|
| | | <arg value="%MANAGER%=${manager.zipfile}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%BUILDDATE%=${gb.versionDate}" />
|
| | |
| | | <exclude name="WEB-INF/web.xml" />
|
| | | <exclude name="com/gitblit/tests/" />
|
| | | <exclude name="com/gitblit/build/**" />
|
| | | <exclude name="com/gitblit/client/**" />
|
| | | <exclude name="com/gitblit/GitBlitServer*.class" />
|
| | | <exclude name="com/gitblit/Launcher*.class" />
|
| | | <exclude name="com/gitblit/MakeCertificate*.class" />
|
| | |
| | |
|
| | | <!--
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | Build the stand-alone, Gitblit RPC Client
|
| | | Build the stand-alone, Gitblit Manager
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="buildRpcClient" depends="compile" description="Builds the stand-alone Gitblit RPC client">
|
| | | <echo>Building Gitblit RPC Client ${gb.version}</echo>
|
| | | <target name="buildManager" depends="compile" description="Builds the stand-alone Gitblit Manager">
|
| | | <echo>Building Gitblit Manager ${gb.version}</echo>
|
| | |
|
| | | <genjar jarfile="rpcclient.jar">
|
| | | <genjar jarfile="manager.jar">
|
| | | <resource file="${basedir}/src/com/gitblit/client/splash.png" />
|
| | | <resource file="${basedir}/resources/gitblt-favicon.png" />
|
| | | <resource file="${basedir}/resources/gitweb-favicon.png" />
|
| | | <resource file="${basedir}/resources/user_16x16.png" />
|
| | | <resource file="${basedir}/resources/settings_16x16.png" />
|
| | | <resource file="${basedir}/resources/lock_go_16x16.png" />
|
| | | <resource file="${basedir}/resources/lock_pull_16x16.png" />
|
| | | <resource file="${basedir}/resources/shield_16x16.png" />
|
| | |
| | | <resource file="${basedir}/resources/book_16x16.png" />
|
| | | <resource file="${basedir}/resources/bug_16x16.png" />
|
| | | <resource file="${basedir}/resources/blank.png" />
|
| | | <resource file="${basedir}/src/com/gitblit/wicket/GitBlitWebApp.properties" />
|
| | |
|
| | | <class name="com.gitblit.client.GitblitClientLauncher" />
|
| | | <class name="com.gitblit.client.GitblitManagerLauncher" />
|
| | | <classfilter>
|
| | | <exclude name="org.apache." />
|
| | | <exclude name="org.bouncycastle." />
|
| | |
| | | </classfilter>
|
| | | <classpath refid="master-classpath" />
|
| | | <manifest>
|
| | | <attribute name="Main-Class" value="com.gitblit.client.GitblitClientLauncher" />
|
| | | <attribute name="Main-Class" value="com.gitblit.client.GitblitManagerLauncher" />
|
| | | <attribute name="SplashScreen-Image" value="splash.png" />
|
| | | <attribute name="Specification-Version" value="${gb.version}" />
|
| | | <attribute name="Release-Date" value="${gb.versionDate}" />
|
| | | </manifest>
|
| | | </genjar>
|
| | |
|
| | | <!-- Build the rpc client zip file -->
|
| | | <zip destfile="${rpcclient.zipfile}">
|
| | | <!-- Build the Manager zip file -->
|
| | | <zip destfile="${manager.zipfile}">
|
| | | <fileset dir="${basedir}">
|
| | | <include name="rpcclient.jar" /> |
| | | <include name="manager.jar" /> |
| | | </fileset>
|
| | | </zip>
|
| | | </target>
|
| | |
| | | <arg value="%FEDCLIENT%=${fedclient.zipfile}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%RPCCLIENT%=${rpcclient.zipfile}" />
|
| | | <arg value="%MANAGER%=${manager.zipfile}" />
|
| | |
|
| | | <arg value="--substitute" />
|
| | | <arg value="%BUILDDATE%=${gb.versionDate}" />
|
| | |
| | | Compile from source, publish binaries, and build & deploy site
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="buildAll" depends="buildGO,buildWAR,buildFederationClient,buildRpcClient,buildSite"> |
| | | <target name="buildAll" depends="buildGO,buildWAR,buildFederationClient,buildManager,buildSite"> |
| | | <!-- Cleanup -->
|
| | | <delete dir="${project.build.dir}" />
|
| | | <delete dir="${project.war.dir}" />
|
| | |
| | | Publish binaries to Google Code
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="publishBinaries" depends="buildGO,buildWAR,buildFederationClient,buildRpcClient" description="Publish the Gitblit binaries to Google Code">
|
| | | <target name="publishBinaries" depends="buildGO,buildWAR,buildFederationClient,buildManager" description="Publish the Gitblit binaries to Google Code">
|
| | |
|
| | | <echo>Uploading Gitblit ${gb.version} binaries</echo>
|
| | |
|
| | |
| | | summary="Gitblit Federation Client v${gb.version} (command-line tool to clone data from federated Gitblit instances)"
|
| | | labels="Featured, Type-Package, OpSys-All" />
|
| | |
|
| | | <!-- Upload RpcClient -->
|
| | | <!-- Upload Manager -->
|
| | | <gcupload
|
| | | username="${googlecode.user}"
|
| | | password="${googlecode.password}"
|
| | | projectname="gitblit"
|
| | | filename="${rpcclient.zipfile}" |
| | | targetfilename="rpcclient-${gb.version}.zip"
|
| | | summary="Gitblit RPC Client v${gb.version} (Swing tool to clone repositories and remotely administer a Gitblit server)"
|
| | | filename="${manager.zipfile}" |
| | | targetfilename="manager-${gb.version}.zip"
|
| | | summary="Gitblit Manager v${gb.version} (Swing tool to remotely administer a Gitblit server)"
|
| | | labels="Featured, Type-Package, OpSys-All" />
|
| | | </target>
|
| | |
|