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:
iancottrell@chromium.org 2013-10-23 14:31:31 +00:00
Родитель d092d49163
Коммит 2a27f96188
2 изменённых файлов: 43 добавлений и 6 удалений

Просмотреть файл

@ -122,9 +122,28 @@
<!-- get the project manifest package -->
<xpath input="${out.manifest.abs.file}"
expression="/manifest/@package" output="project.app.package" />
<property name="create.test.jar.file"
location="${CREATE_TEST_JAR_PATH}" />
<script language="javascript" src="${create.test.jar.file}"/>
<loadresource property="project.app.packagepath">
<propertyresource name="project.app.package"/>
<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>
</if>

Просмотреть файл

@ -69,9 +69,27 @@
<!-- get the project manifest package -->
<xpath input="${out.manifest.abs.file}"
expression="/manifest/@package" output="project.app.package" />
<property name="create.test.jar.file"
location="${CREATE_TEST_JAR_PATH}" />
<script language="javascript" src="${create.test.jar.file}"/>
<loadresource property="project.app.packagepath">
<propertyresource name="project.app.package"/>
<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>
</if>
<if>