<repo_name>vincent-unique/Java-build-style<file_sep>/README.md
# Java-build-style
batch_javac,

ant,

maven,

gradle
<file_sep>/build-style/build-ant/classes/org/trump/vincent/model/package-info.java
/**
 * Created by Vincent on 2017/7/24.
 */
package org.trump.vincent.model;<file_sep>/build-style/build.xml
<?xml version="1.0" encoding="UTF-8" ?>
<project name="io-style" basedir="./" default="main">
    <property name="version" value="0.0.1"/>
    <property name="vendor" value="trump"/>
    <property name="src.dir" value="./src/main/java/"/>
    <property name="build.dir" value="./build-ant/"/>
    <property name="classes.dir" value="${build.dir}/classes/"/>
    <property name="archive.dir" value="${build.dir}/archive/"/>
    <property name="main-class" value="org.trump.vincent.Application"/>
    <property name="lib.dir" value="./libs/"/>

    <path id="classpath">
        <fileset dir="${lib.dir}" includes="**/*.jar"/>
    </path>


    <!--Tasks to build -->
    <target name="clean">
        <delete dir="${build.dir}"/>
    </target>

    <target name="compile" depends="clean">
        <mkdir dir="${classes.dir}"/>
        <javac srcdir="${src.dir}" classpathref="classpath" destdir="${classes.dir}"/>
        <copy todir="${classes.dir}">
            <fileset dir="${src.dir}" excludes="**/*.jar"/>
            <fileset dir="${src.dir}../resources" excludes=""/>
        </copy>
    </target>

    <target name="archive-jar" depends="compile">
        <jar basedir="${classes.dir}" destfile="${archive.dir}/${ant.project.name}.jar">
            <manifest>
                <attribute name="Main-Class" value="${main-class}"/>
                <attribute name="Vendor" value="${vendor}"/>
                <attribute name="version" value="${version}"/>
            </manifest>
        </jar>
    </target>

    <target name="run" depends="archive-jar">
        <java jar="${archive.dir}/${ant.project.name}.jar" fork="true"/>
    </target>

    <target name="main" depends="archive-jar"/>

    <target name="run2" depends="archive-jar">
        <java fork="true" classname="${main-class}">
            <classpath>
                <path refid="classpath"/>
                <path location="${archive.dir}/${ant.project.name}.jar"/>
            </classpath>
        </java>
    </target>

</project><file_sep>/build-style/settings.gradle
rootProject.name = 'build-style'

<file_sep>/build-style/.gradle/3.1/taskArtifacts/cache.properties
#Mon Jul 24 23:02:44 GMT+08:00 2017
<file_sep>/build-style/src/main/java/org/trump/vincent/model/BaseBean.java
package org.trump.vincent.model;

import java.io.Serializable;

/**
 * Created by Vincent on 2017/7/24.
 */
public class BaseBean implements Serializable {
    public long getSerialVersionUID() {
        return serialVersionUID;
    }

    private long serialVersionUID = 201707242230l;
}
