James Moger
2011-06-25 22fc5e48cbe050d8485f78f6165b59e4085eaeef
Moved Build classes to their own package
4 files renamed
2 files modified
28 ■■■■■ changed files
build.xml 14 ●●●● patch | view | raw | blame | history
src/com/gitblit/Launcher.java 2 ●●●●● patch | view | raw | blame | history
src/com/gitblit/build/Build.java 3 ●●●● patch | view | raw | blame | history
src/com/gitblit/build/BuildSite.java 3 ●●●● patch | view | raw | blame | history
src/com/gitblit/build/BuildThumbnails.java 2 ●●● patch | view | raw | blame | history
src/com/gitblit/build/BuildWebXml.java 4 ●●● patch | view | raw | blame | history
build.xml
@@ -83,11 +83,11 @@
        <delete dir="${project.build.dir}" />
        <mkdir dir="${project.build.dir}" />
        <javac srcdir="${basedir}/src" destdir="${project.build.dir}">
            <include name="com/gitblit/Build.java" />
            <include name="com/gitblit/build/Build.java" />
            <include name="com/gitblit/Constants.java" />
            <include name="com/gitblit/utils/StringUtils.java" />            
        </javac>
        <java classpath="${project.build.dir}" classname="com.gitblit.Build" />
        <java classpath="${project.build.dir}" classname="com.gitblit.build.Build" />
        <!-- Compile Project -->
        <path id="master-classpath">
@@ -193,7 +193,7 @@
            </copy>
            <!-- Build deployment doc pages -->
            <java classpath="${project.build.dir}" classname="com.gitblit.BuildSite">
            <java classpath="${project.build.dir}" classname="com.gitblit.build.BuildSite">
                <classpath refid="master-classpath" />
                <arg value="--sourceFolder" />
                <arg value="${basedir}/docs" />
@@ -268,7 +268,7 @@
        </antcall>
        
        <!-- Build the WAR web.xml from the prototype web.xml and gitblit.properties --> 
        <java classpath="${project.build.dir}" classname="com.gitblit.BuildWebXml">
        <java classpath="${project.build.dir}" classname="com.gitblit.build.BuildWebXml">
            <classpath refid="master-classpath" />
            
            <arg value="--sourceFile" />
@@ -307,7 +307,7 @@
            <fileset dir="${project.build.dir}">
                <exclude name="WEB-INF/web.xml" />
                <exclude name="com/gitblit/tests/" />
                <exclude name="com/gitblit/Build*.class" />
                <exclude name="com/gitblit/build/**" />
                <exclude name="com/gitblit/GitBlitServer*.class" />
                <exclude name="com/gitblit/Launcher*.class" />
                <exclude name="com/gitblit/MakeCertificate*.class" />                
@@ -372,7 +372,7 @@
        </copy>
        <!-- Generate thumbnails of screenshots -->
        <java classpath="${project.build.dir}" classname="com.gitblit.BuildThumbnails">
        <java classpath="${project.build.dir}" classname="com.gitblit.build.BuildThumbnails">
            <classpath refid="master-classpath" />
                
            <arg value="--sourceFolder" />
@@ -394,7 +394,7 @@
        </copy>
        <!-- Build site pages -->
        <java classpath="${project.build.dir}" classname="com.gitblit.BuildSite">
        <java classpath="${project.build.dir}" classname="com.gitblit.build.BuildSite">
            <classpath refid="master-classpath" />
            <arg value="--sourceFolder" />
            <arg value="${basedir}/docs" />
src/com/gitblit/Launcher.java
@@ -27,6 +27,8 @@
import java.util.Arrays;
import java.util.List;
import com.gitblit.build.Build;
/**
 * Launch helper class that adds all jars found in the local "lib" folder and
 * then calls the application main. Using this technique we do not have to
src/com/gitblit/build/Build.java
File was renamed from src/com/gitblit/Build.java
@@ -13,7 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.gitblit;
package com.gitblit.build;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
@@ -32,6 +32,7 @@
import java.util.Map;
import java.util.Properties;
import com.gitblit.Constants;
import com.gitblit.utils.StringUtils;
public class Build {
src/com/gitblit/build/BuildSite.java
File was renamed from src/com/gitblit/BuildSite.java
@@ -13,7 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.gitblit;
package com.gitblit.build;
import java.io.BufferedReader;
import java.io.File;
@@ -36,6 +36,7 @@
import com.beust.jcommander.Parameter;
import com.beust.jcommander.ParameterException;
import com.beust.jcommander.Parameters;
import com.gitblit.Constants;
import com.gitblit.utils.MarkdownUtils;
import com.gitblit.utils.StringUtils;
src/com/gitblit/build/BuildThumbnails.java
File was renamed from src/com/gitblit/BuildThumbnails.java
@@ -13,7 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.gitblit;
package com.gitblit.build;
import java.awt.Dimension;
import java.awt.Image;
src/com/gitblit/build/BuildWebXml.java
File was renamed from src/com/gitblit/BuildWebXml.java
@@ -13,7 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.gitblit;
package com.gitblit.build;
import java.io.BufferedReader;
import java.io.File;
@@ -28,6 +28,8 @@
import com.beust.jcommander.Parameter;
import com.beust.jcommander.ParameterException;
import com.beust.jcommander.Parameters;
import com.gitblit.Keys;
import com.gitblit.Keys.server;
import com.gitblit.utils.StringUtils;
public class BuildWebXml {