[33415] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <project name="image-identification" default="all">
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | <property file="image-identification.properties"/>
|
---|
| 6 | <!-- Uncomment the following property if no tests compilation is needed -->
|
---|
| 7 | <!--
|
---|
| 8 | <property name="skip.tests" value="true"/>
|
---|
| 9 | -->
|
---|
| 10 |
|
---|
| 11 | <!-- Compiler options -->
|
---|
| 12 |
|
---|
| 13 | <property name="compiler.debug" value="on"/>
|
---|
| 14 | <property name="compiler.generate.no.warnings" value="off"/>
|
---|
| 15 | <property name="compiler.args" value=""/>
|
---|
| 16 | <property name="compiler.max.memory" value="700m"/>
|
---|
| 17 | <patternset id="ignored.files">
|
---|
| 18 | <exclude name="**/*.hprof/**"/>
|
---|
| 19 | <exclude name="**/*.pyc/**"/>
|
---|
| 20 | <exclude name="**/*.pyo/**"/>
|
---|
| 21 | <exclude name="**/*.rbc/**"/>
|
---|
| 22 | <exclude name="**/*.yarb/**"/>
|
---|
| 23 | <exclude name="**/*~/**"/>
|
---|
| 24 | <exclude name="**/.DS_Store/**"/>
|
---|
| 25 | <exclude name="**/.git/**"/>
|
---|
| 26 | <exclude name="**/.hg/**"/>
|
---|
| 27 | <exclude name="**/.svn/**"/>
|
---|
| 28 | <exclude name="**/CVS/**"/>
|
---|
| 29 | <exclude name="**/__pycache__/**"/>
|
---|
| 30 | <exclude name="**/_svn/**"/>
|
---|
| 31 | <exclude name="**/vssver.scc/**"/>
|
---|
| 32 | <exclude name="**/vssver2.scc/**"/>
|
---|
| 33 | </patternset>
|
---|
| 34 | <patternset id="library.patterns">
|
---|
| 35 | <include name="*.war"/>
|
---|
| 36 | <include name="*.swc"/>
|
---|
| 37 | <include name="*.zip"/>
|
---|
| 38 | <include name="*.egg"/>
|
---|
| 39 | <include name="*.ane"/>
|
---|
| 40 | <include name="*.jar"/>
|
---|
| 41 | <include name="*.ear"/>
|
---|
| 42 | </patternset>
|
---|
| 43 | <patternset id="compiler.resources">
|
---|
| 44 | <exclude name="**/?*.java"/>
|
---|
| 45 | <exclude name="**/?*.form"/>
|
---|
| 46 | <exclude name="**/?*.class"/>
|
---|
| 47 | <exclude name="**/?*.groovy"/>
|
---|
| 48 | <exclude name="**/?*.scala"/>
|
---|
| 49 | <exclude name="**/?*.flex"/>
|
---|
| 50 | <exclude name="**/?*.kt"/>
|
---|
| 51 | <exclude name="**/?*.clj"/>
|
---|
| 52 | <exclude name="**/?*.aj"/>
|
---|
| 53 | </patternset>
|
---|
| 54 |
|
---|
| 55 | <!-- JDK definitions -->
|
---|
| 56 |
|
---|
| 57 | <property name="jdk.bin.1.8" value="${jdk.home.1.8}/bin"/>
|
---|
| 58 | <path id="jdk.classpath.1.8">
|
---|
| 59 | <fileset dir="${jdk.home.1.8}">
|
---|
| 60 | <include name="jre/lib/charsets.jar"/>
|
---|
| 61 | <include name="jre/lib/deploy.jar"/>
|
---|
| 62 | <include name="jre/lib/ext/cldrdata.jar"/>
|
---|
| 63 | <include name="jre/lib/ext/dnsns.jar"/>
|
---|
| 64 | <include name="jre/lib/ext/jaccess.jar"/>
|
---|
| 65 | <include name="jre/lib/ext/jfxrt.jar"/>
|
---|
| 66 | <include name="jre/lib/ext/localedata.jar"/>
|
---|
| 67 | <include name="jre/lib/ext/nashorn.jar"/>
|
---|
| 68 | <include name="jre/lib/ext/sunec.jar"/>
|
---|
| 69 | <include name="jre/lib/ext/sunjce_provider.jar"/>
|
---|
| 70 | <include name="jre/lib/ext/sunpkcs11.jar"/>
|
---|
| 71 | <include name="jre/lib/ext/zipfs.jar"/>
|
---|
| 72 | <include name="jre/lib/javaws.jar"/>
|
---|
| 73 | <include name="jre/lib/jce.jar"/>
|
---|
| 74 | <include name="jre/lib/jfr.jar"/>
|
---|
| 75 | <include name="jre/lib/jfxswt.jar"/>
|
---|
| 76 | <include name="jre/lib/jsse.jar"/>
|
---|
| 77 | <include name="jre/lib/management-agent.jar"/>
|
---|
| 78 | <include name="jre/lib/plugin.jar"/>
|
---|
| 79 | <include name="jre/lib/resources.jar"/>
|
---|
| 80 | <include name="jre/lib/rt.jar"/>
|
---|
| 81 | </fileset>
|
---|
| 82 | </path>
|
---|
| 83 |
|
---|
| 84 | <property name="project.jdk.home" value="${jdk.home.1.8}"/>
|
---|
| 85 | <property name="project.jdk.bin" value="${jdk.bin.1.8}"/>
|
---|
| 86 | <property name="project.jdk.classpath" value="jdk.classpath.1.8"/>
|
---|
| 87 | <!-- Register Custom Compiler Taskdefs -->
|
---|
| 88 | <property name="javac2.home" value="${idea.home}/lib"/>
|
---|
| 89 | <path id="javac2.classpath">
|
---|
| 90 | <fileset dir="${javac2.home}">
|
---|
| 91 | <include name="javac2.jar"/>
|
---|
| 92 | <include name="jdom.jar"/>
|
---|
| 93 | <include name="asm-all*.jar"/>
|
---|
| 94 | <include name="jgoodies-forms.jar"/>
|
---|
| 95 | </fileset>
|
---|
| 96 | </path>
|
---|
| 97 | <target name="register.custom.compilers">
|
---|
| 98 | <taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
|
---|
| 99 | <taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
|
---|
| 100 | </target>
|
---|
| 101 |
|
---|
| 102 | <!-- Modules -->
|
---|
| 103 |
|
---|
| 104 |
|
---|
| 105 | <!-- Module image-identification -->
|
---|
| 106 |
|
---|
| 107 | <dirname property="module.image-identification.basedir" file="${ant.file}"/>
|
---|
| 108 |
|
---|
| 109 |
|
---|
| 110 | <property name="module.jdk.home.image-identification" value="${project.jdk.home}"/>
|
---|
| 111 | <property name="module.jdk.bin.image-identification" value="${project.jdk.bin}"/>
|
---|
| 112 | <property name="module.jdk.classpath.image-identification" value="${project.jdk.classpath}"/>
|
---|
| 113 |
|
---|
| 114 | <property name="compiler.args.image-identification" value="-encoding UTF-8 -source 8 -target 8 ${compiler.args}"/>
|
---|
| 115 |
|
---|
| 116 | <property name="image-identification.output.dir" value="${module.image-identification.basedir}/out/production/image-identification"/>
|
---|
| 117 | <property name="image-identification.testoutput.dir" value="${module.image-identification.basedir}/out/test/image-identification"/>
|
---|
| 118 |
|
---|
| 119 | <path id="image-identification.module.bootclasspath">
|
---|
| 120 | <!-- Paths to be included in compilation bootclasspath -->
|
---|
| 121 | </path>
|
---|
| 122 |
|
---|
| 123 | <path id="image-identification.module.production.classpath">
|
---|
| 124 | <path refid="${module.jdk.classpath.image-identification}"/>
|
---|
| 125 | <pathelement location="${basedir}/../../opencv-3.4.2/build/bin/opencv-342.jar"/>
|
---|
| 126 | </path>
|
---|
| 127 |
|
---|
| 128 | <path id="image-identification.runtime.production.module.classpath">
|
---|
| 129 | <pathelement location="${image-identification.output.dir}"/>
|
---|
| 130 | <pathelement location="${basedir}/../../opencv-3.4.2/build/bin/opencv-342.jar"/>
|
---|
| 131 | </path>
|
---|
| 132 |
|
---|
| 133 | <path id="image-identification.module.classpath">
|
---|
| 134 | <path refid="${module.jdk.classpath.image-identification}"/>
|
---|
| 135 | <pathelement location="${image-identification.output.dir}"/>
|
---|
| 136 | <pathelement location="${basedir}/../../opencv-3.4.2/build/bin/opencv-342.jar"/>
|
---|
| 137 | </path>
|
---|
| 138 |
|
---|
| 139 | <path id="image-identification.runtime.module.classpath">
|
---|
| 140 | <pathelement location="${image-identification.testoutput.dir}"/>
|
---|
| 141 | <pathelement location="${image-identification.output.dir}"/>
|
---|
| 142 | <pathelement location="${basedir}/../../opencv-3.4.2/build/bin/opencv-342.jar"/>
|
---|
| 143 | </path>
|
---|
| 144 |
|
---|
| 145 |
|
---|
| 146 | <patternset id="excluded.from.module.image-identification">
|
---|
| 147 | <patternset refid="ignored.files"/>
|
---|
| 148 | </patternset>
|
---|
| 149 |
|
---|
| 150 | <patternset id="excluded.from.compilation.image-identification">
|
---|
| 151 | <patternset refid="excluded.from.module.image-identification"/>
|
---|
| 152 | </patternset>
|
---|
| 153 |
|
---|
| 154 | <path id="image-identification.module.sourcepath">
|
---|
| 155 | <dirset dir="${module.image-identification.basedir}">
|
---|
| 156 | <include name="src"/>
|
---|
| 157 | </dirset>
|
---|
| 158 | </path>
|
---|
| 159 |
|
---|
| 160 |
|
---|
| 161 | <target name="compile.module.image-identification" depends="compile.module.image-identification.production,compile.module.image-identification.tests" description="Compile module image-identification"/>
|
---|
| 162 |
|
---|
| 163 | <target name="compile.module.image-identification.production" depends="register.custom.compilers" description="Compile module image-identification; production classes">
|
---|
| 164 | <mkdir dir="${image-identification.output.dir}"/>
|
---|
| 165 | <javac2 destdir="${image-identification.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.image-identification}/javac">
|
---|
| 166 | <compilerarg line="${compiler.args.image-identification}"/>
|
---|
| 167 | <bootclasspath refid="image-identification.module.bootclasspath"/>
|
---|
| 168 | <classpath refid="image-identification.module.production.classpath"/>
|
---|
| 169 | <src refid="image-identification.module.sourcepath"/>
|
---|
| 170 | <patternset refid="excluded.from.compilation.image-identification"/>
|
---|
| 171 | </javac2>
|
---|
| 172 |
|
---|
| 173 | <copy todir="${image-identification.output.dir}">
|
---|
| 174 | <fileset dir="${module.image-identification.basedir}/src">
|
---|
| 175 | <patternset refid="compiler.resources"/>
|
---|
| 176 | <type type="file"/>
|
---|
| 177 | </fileset>
|
---|
| 178 | </copy>
|
---|
| 179 | </target>
|
---|
| 180 |
|
---|
| 181 | <target name="compile.module.image-identification.tests" depends="register.custom.compilers,compile.module.image-identification.production" description="compile module image-identification; test classes" unless="skip.tests"/>
|
---|
| 182 |
|
---|
| 183 | <target name="clean.module.image-identification" description="cleanup module">
|
---|
| 184 | <delete dir="${image-identification.output.dir}"/>
|
---|
| 185 | <delete dir="${image-identification.testoutput.dir}"/>
|
---|
| 186 | </target>
|
---|
| 187 |
|
---|
| 188 | <target name="init" description="Build initialization">
|
---|
| 189 | <!-- Perform any build initialization in this target -->
|
---|
| 190 | </target>
|
---|
| 191 |
|
---|
| 192 | <target name="clean" depends="clean.module.image-identification" description="cleanup all"/>
|
---|
| 193 |
|
---|
| 194 | <target name="build.modules" depends="init, clean, compile.module.image-identification" description="build all modules"/>
|
---|
| 195 |
|
---|
| 196 | <target name="all" depends="build.modules" description="build all"/>
|
---|
| 197 | </project> |
---|