Replacing the javascript jar file merge with pure ant
BUG=310065 Review URL: https://codereview.chromium.org/35473002 git-svn-id: http://src.chromium.org/svn/trunk/src/build@230420 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
d092d49163
Коммит
2a27f96188
|
@ -122,9 +122,28 @@
|
||||||
<!-- get the project manifest package -->
|
<!-- get the project manifest package -->
|
||||||
<xpath input="${out.manifest.abs.file}"
|
<xpath input="${out.manifest.abs.file}"
|
||||||
expression="/manifest/@package" output="project.app.package" />
|
expression="/manifest/@package" output="project.app.package" />
|
||||||
<property name="create.test.jar.file"
|
<loadresource property="project.app.packagepath">
|
||||||
location="${CREATE_TEST_JAR_PATH}" />
|
<propertyresource name="project.app.package"/>
|
||||||
<script language="javascript" src="${create.test.jar.file}"/>
|
<filterchain>
|
||||||
|
<replacestring from="." to="/"/>
|
||||||
|
</filterchain>
|
||||||
|
</loadresource>
|
||||||
|
<property name="create.test.jar.exclusions"
|
||||||
|
value="${project.app.packagepath}/R.class ${project.app.packagepath}/R$*.class ${project.app.packagepath}/Manifest.class ${project.app.packagepath}/Manifest$*.class ${project.app.packagepath}/BuildConfig.class"/>
|
||||||
|
<jar destfile="${TEST_JAR_PATH}"
|
||||||
|
excludes="${create.test.jar.exclusions}"
|
||||||
|
duplicate="preserve"
|
||||||
|
>
|
||||||
|
<restrict>
|
||||||
|
<name name="**/*.class"/>
|
||||||
|
<archives>
|
||||||
|
<zips>
|
||||||
|
<path refid="javac.custom.classpath"/>
|
||||||
|
</zips>
|
||||||
|
</archives>
|
||||||
|
</restrict>
|
||||||
|
<fileset dir="${out.dir}/classes"/>
|
||||||
|
</jar>
|
||||||
</then>
|
</then>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
|
@ -69,9 +69,27 @@
|
||||||
<!-- get the project manifest package -->
|
<!-- get the project manifest package -->
|
||||||
<xpath input="${out.manifest.abs.file}"
|
<xpath input="${out.manifest.abs.file}"
|
||||||
expression="/manifest/@package" output="project.app.package" />
|
expression="/manifest/@package" output="project.app.package" />
|
||||||
<property name="create.test.jar.file"
|
<loadresource property="project.app.packagepath">
|
||||||
location="${CREATE_TEST_JAR_PATH}" />
|
<propertyresource name="project.app.package"/>
|
||||||
<script language="javascript" src="${create.test.jar.file}"/>
|
<filterchain>
|
||||||
|
<replacestring from="." to="/"/>
|
||||||
|
</filterchain>
|
||||||
|
</loadresource>
|
||||||
|
<property name="create.test.jar.exclusions" value="${project.app.packagepath}/R.class ${project.app.packagepath}/R$*.class ${project.app.packagepath}/Manifest.class ${project.app.packagepath}/Manifest$*.class ${project.app.packagepath}/BuildConfig.class"/>
|
||||||
|
<jar destfile="${TEST_JAR_PATH}"
|
||||||
|
excludes="${create.test.jar.exclusions}"
|
||||||
|
duplicate="preserve"
|
||||||
|
>
|
||||||
|
<restrict>
|
||||||
|
<name name="**/*.class"/>
|
||||||
|
<archives>
|
||||||
|
<zips>
|
||||||
|
<path refid="javac.custom.classpath"/>
|
||||||
|
</zips>
|
||||||
|
</archives>
|
||||||
|
</restrict>
|
||||||
|
<fileset dir="${out.dir}/classes"/>
|
||||||
|
</jar>
|
||||||
</then>
|
</then>
|
||||||
</if>
|
</if>
|
||||||
<if>
|
<if>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче