| | |
| | | <copy todir="${basedir}" overwrite="false">
|
| | | <fileset dir="${basedir}/distrib">
|
| | | <include name="gitblit.properties" />
|
| | | <include name="users.properties" />
|
| | | <include name="users.conf" />
|
| | | </fileset>
|
| | | </copy>
|
| | |
|
| | |
| | | </manifest>
|
| | | </jar>
|
| | |
|
| | | <!-- Gitblit library dependencies -->
|
| | | <mkdir dir="${project.deploy.dir}/ext"/>
|
| | | <copy todir="${project.deploy.dir}/ext">
|
| | | <fileset dir="${basedir}/ext">
|
| | | <exclude name="junit*.jar" />
|
| | | <exclude name="commons-net*.jar" />
|
| | | <exclude name="*-sources.jar" />
|
| | | <exclude name="*-javadoc.jar" />
|
| | | </fileset>
|
| | | </copy>
|
| | | |
| | | <!-- Build the docs for the deploy -->
|
| | | <antcall target="buildDocs" inheritall="true" inheritrefs="true">
|
| | | <param name="docs.output.dir" value="${project.deploy.dir}/docs" />
|
| | | </antcall>
|
| | |
|
| | | <!-- Copy the supported Groovy hook scripts -->
|
| | | <mkdir dir="${project.deploy.dir}/groovy" />
|
| | | <copy todir="${project.deploy.dir}/groovy">
|
| | | <fileset dir="${basedir}/groovy">
|
| | | <include name="sendmail.groovy" />
|
| | | <include name="jenkins.groovy" />
|
| | | </fileset>
|
| | | </copy>
|
| | | |
| | | <!-- Create Zip deployment -->
|
| | | <zip destfile="${distribution.zipfile}">
|
| | | <fileset dir="${project.deploy.dir}">
|
| | |
| | | <!-- Copy Doc images -->
|
| | | <fileset dir="${basedir}/docs">
|
| | | <include name="*.png" />
|
| | | <include name="*.gif" />
|
| | | </fileset>
|
| | | </copy>
|
| | |
|
| | |
| | |
|
| | | <delete dir="${project.war.dir}" />
|
| | |
|
| | | <!-- Copy web.xml and users.properties to WEB-INF -->
|
| | | <!-- Copy web.xml and users.conf to WEB-INF -->
|
| | | <copy todir="${project.war.dir}/WEB-INF">
|
| | | <fileset dir="${basedir}/distrib">
|
| | | <include name="users.properties" />
|
| | | <include name="users.conf" />
|
| | | </fileset>
|
| | | <fileset dir="${basedir}/src/WEB-INF">
|
| | | <include name="web.xml" />
|
| | |
| | | <antcall target="buildDocs" inheritall="true" inheritrefs="true">
|
| | | <param name="docs.output.dir" value="${project.war.dir}/WEB-INF/docs" />
|
| | | </antcall>
|
| | | |
| | |
|
| | | <!-- Copy the supported Groovy hook scripts -->
|
| | | <mkdir dir="${project.war.dir}/WEB-INF/groovy" />
|
| | | <copy todir="${project.war.dir}/WEB-INF/groovy">
|
| | | <fileset dir="${basedir}/groovy">
|
| | | <include name="sendmail.groovy" />
|
| | | <include name="jenkins.groovy" />
|
| | | </fileset>
|
| | | </copy>
|
| | |
|
| | | <!-- Build the WAR web.xml from the prototype web.xml and gitblit.properties -->
|
| | | <java classpath="${project.build.dir}" classname="com.gitblit.build.BuildWebXml">
|
| | | <classpath refid="master-classpath" />
|
| | |
| | | Build a Gitblit filesystem for deployment to RedHat OpenShif Expresst
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="buildOpenShift" depends="compile" description="Build exploded WAR file suitable for deployment to OpenShift Express">
|
| | | <target name="buildExpress" depends="compile" description="Build exploded WAR file suitable for deployment to OpenShift Express">
|
| | | <echo>Building Gitblit Express for RedHat OpenShift ${gb.version}</echo>
|
| | |
|
| | | <delete dir="${project.express.dir}" />
|
| | |
| | | <copy tofile="${deployments.root}/WEB-INF/reference.properties"
|
| | | file="${basedir}/distrib/gitblit.properties"/>
|
| | |
|
| | | <!-- Copy the supported Groovy hook scripts -->
|
| | | <mkdir dir="${deployments.root}/WEB-INF/groovy" />
|
| | | <copy todir="${deployments.root}/WEB-INF/groovy">
|
| | | <fileset dir="${basedir}/groovy">
|
| | | <include name="sendmail.groovy" />
|
| | | <include name="jenkins.groovy" />
|
| | | </fileset>
|
| | | </copy>
|
| | | |
| | | <!-- Build the WAR web.xml from the prototype web.xml and gitblit.properties -->
|
| | | <!-- THIS FILE IS NOT OVERRIDDEN ONCE IT IS BUILT!!! -->
|
| | | <java classpath="${project.build.dir}" classname="com.gitblit.build.BuildWebXml">
|
| | |
| | | <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/users_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" />
|
| | |
| | | <!-- Copy Doc images -->
|
| | | <fileset dir="${basedir}/docs">
|
| | | <include name="*.png" />
|
| | | <include name="*.gif" />
|
| | | <include name="*.js" />
|
| | | </fileset>
|
| | | </copy>
|
| | |
| | | Compile from source, publish binaries, and build & deploy site
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="buildAll" depends="buildGO,buildWAR,buildOpenShift,buildFederationClient,buildManager,buildApiLibrary,buildSite"> |
| | | <target name="buildAll" depends="buildGO,buildWAR,buildExpress,buildFederationClient,buildManager,buildApiLibrary,buildSite"> |
| | | <!-- Cleanup -->
|
| | | <delete dir="${project.build.dir}" />
|
| | | <delete dir="${project.war.dir}" />
|
| | |
| | | <delete dir="${project.express.dir}" />
|
| | | </target>
|
| | |
|
| | | |
| | | <!--
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| | | Update the gh-pages branch with the current site
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="updateGhPages" depends="buildSite">
|
| | | <!-- Build gh-pages branch -->
|
| | | <java classpath="${project.build.dir}" classname="com.gitblit.build.BuildGhPages">
|
| | | <classpath refid="master-classpath" />
|
| | | <arg value="--sourceFolder" />
|
| | | <arg value="${basedir}/site" />
|
| | |
|
| | | <arg value="--repository" />
|
| | | <arg value="${basedir}" />
|
| | | |
| | | <arg value="--obliterate" />
|
| | | </java>
|
| | | </target>
|
| | | |
| | |
|
| | | <!--
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | Publish binaries to Google Code
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="publishBinaries" depends="buildGO,buildWAR,buildOpenShift,buildFederationClient,buildManager" description="Publish the Gitblit binaries to Google Code">
|
| | | <target name="publishBinaries" depends="buildGO,buildWAR,buildExpress,buildFederationClient,buildManager,buildApiLibrary" description="Publish the Gitblit binaries to Google Code">
|
| | |
|
| | | <echo>Uploading Gitblit ${gb.version} binaries</echo>
|
| | |
|
| | |
| | | You must add ext/commons-net-1.4.0.jar to your ANT classpath.
|
| | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| | | -->
|
| | | <target name="publishSite" depends="buildSite" description="Publish the Gitblit site to a webserver (requires ext/commons-net-1.4.0.jar)" >
|
| | | <target name="publishSite" depends="buildSite,updateGhPages" description="Publish the Gitblit site to a webserver (requires ext/commons-net-1.4.0.jar)" >
|
| | |
|
| | | <echo>Uploading Gitblit ${gb.version} website</echo>
|
| | |
|