Home | History | Annotate | Download | only in ant

Lines Matching full:project

2 <project name="android_rules" default="debug">
5 This build file is imported by the project build file. It contains
21 - test project-specific build targets,
138 <property name="resource.package.file.name" value="${ant.project.name}.ap_" />
185 <!-- macro to do a task on if project.is.library is false.
191 <if condition="${project.is.library}">
237 <!-- set the secondary dx input: the project (and library) jar files
245 <path refid="project.all.jars.path" />
285 <jarfile refid="project.all.jars.path" />
287 <nativefolder refid="project.library.native.folder.path" />
322 <arg value="${project.app.package}/${test.runner}" />
374 <echo level="info">Project Name: ${ant.project.name}</echo>
375 <gettype projectTypeOut="project.type" />
377 <!-- sets a few boolean based on project.type
379 <condition property="project.is.library" value="true" else="false">
380 <equals arg1="${project.type}" arg2="library" />
382 <condition property="project.is.test" value="true" else="false">
383 <equals arg1="${project.type}" arg2="test" />
385 <condition property="project.is.testapp" value="true" else="false">
386 <equals arg1="${project.type}" arg2="test-app" />
389 <!-- If a test project, resolve absolute path to tested project. -->
390 <if condition="${project.is.test}">
392 project.absolute.dir" location="${tested.project.dir}" />
432 <!-- get the project manifest package -->
434 expression="/manifest/@package" output="project.app.package" />
448 <!-- if we know about a tested project or libraries, we clean them too. -->
449 <if condition="${project.is.test}">
451 <property name="tested.project.absolute.dir" location="${tested.project.dir}" />
453 <fileset dir="${tested.project.absolute.dir}" includes="build.xml" />
463 <getlibs libraryFolderPathOut="project.library.folder.path" />
466 <isreference refid="project.library.folder.path" />
472 buildpathref="project.library.folder.path"
496 <echo level="info">Resolving Build Target for ${ant.project.name}...</echo>
497 <!-- load project properties, resolve Android target, library dependencies
501 androidJarFileOut="project.target.android.jar"
502 androidAidlFileOut="project.target.framework.aidl"
503 bootClassPathOut="project.target.class.path"
504 targetApiOut="project.target.apilevel"
505 minSdkVersionOut="project.minSdkVersion" />
523 <echo level="info">Resolving Dependencies for ${ant.project.name}...</echo>
525 libraryFolderPathOut="project.library.folder.path"
526 libraryPackagesOut="project.library.packages"
527 libraryManifestFilePathOut="project.library.manifest.file.path"
528 libraryResFolderPathOut="project.library.res.folder.path"
529 libraryNativeFolderPathOut="project.library.native.folder.path"
530 jarLibraryPathOut="project.all.jars.path"
531 targetApi="${project.target.apilevel}"
538 <isreference refid="project.library.folder.path" />
545 <condition property="project.libraries.target" value="instrument" else="${build.target}">
550 <echo level="info">Building Libraries with '${project.libraries.target}'...</echo>
555 buildpathref="project.library.folder.path"
558 <target name="${project.libraries.target}" />
563 <!-- compile the main project if this is a test project -->
564 <if condition="${project.is.test}">
566 <!-- figure out which target must be used to build the tested project.
568 <condition property="tested.project.target" value="instrument" else="debug">
573 <echo level="info">Building tested project at ${tested.project.absolute.dir} with '${tested.project.target}'...</echo>
574 <subant target="${tested.project.target}" failonerror="true">
575 <fileset dir="${tested.project.absolute.dir}" includes="build.xml" />
578 <!-- get the tested project full classpath to be able to build
579 the test project -->
581 projectLocation="${tested.project.absolute.dir}"
582 projectClassPathOut="tested.project.classpath"/>
585 <!-- no tested project, make an empty Path object so that javac doesn't
587 <path id="tested.project.classpath" />
603 <library refid="project.library.manifest.file.path" />
609 <aidl executable="${aidl}" framework="${project.target.framework.aidl}"
621 targetApi="${project.minSdkVersion}"
634 androidjar="${project.target.android.jar}"
637 libraryResFolderPathRefid="project.library.res.folder.path"
638 libraryPackagesRefid="project.library.packages">
647 package="${project.app.package}"
658 <!-- Compiles this project's .java files into .class files. -->
661 <!-- merge the project's own classpath and the tested project's classpath -->
662 <path id="project.javac.classpath">
663 <path refid="project.all.jars.path" />
664 <path refid="tested.project.classpath" />
670 bootclasspathref="project.target.class.path"
672 classpathref="project.javac.classpath"
679 <!-- if the project is instrumented, intrument the classes -->
686 appPackage="${project.app.package}"
687 libraryPackagesRefId="project.library.packages"
703 <!-- if the project is a library then we generate a jar file -->
704 <if condition="${project.is.library}">
717 <propertybyreplace name="project.app.package.path" input="${project.app.package}" replace="." with="/" />
722 excludes="${project.app.package.path}/R.class ${project.app.package.path}/R$*.class ${project.app.package.path}/Manifest.class ${project.app.package.path}/Manifest$*.class ${project.app.package.path}/BuildConfig.class"/>
768 <pathconvert property="project.target.classpath.value" refid="project.target.class.path">
776 This include the project compiled source code and any 3rd party jar
778 <path id="project.all.classes.path">
780 <path refid="project.all.jars.path" />
782 <!-- Set the project jar files Path object into a single property. It'll be
786 <pathconvert property="project.all.classes.value" refid="project.all.classes.path">
811 -injars ${project.all.classes.value}
813 -libraryjars ${project.target.classpath.value}
823 <!-- Converts this project's .class files into .dex files -->
827 <do-only-if-not-library elseText="Library project: do not convert bytecode..." >
858 <!-- Puts the project's resources into the output package file
864 <!-- only package resources if *not* a library project -->
865 <do-only-if-not-library elseText="Library project: do not package resources..." >
873 androidjar="${project.target.android.jar}"
878 libraryResFolderPathRefid="project.library.res.folder.path"
879 libraryPackagesRefid="project.library.packages"
892 <!-- only package apk if *not* a library project -->
893 <do-only-if-not-library elseText="Library project: do not package apk..." >
924 <property name="out.packaged.file" location="${out.absolute.dir}/${ant.project.name}-debug-unaligned.apk" />
925 <property name="out.final.file" location="${out.absolute.dir}/${ant.project.name}-debug.apk" />
937 <istrue value="${project.is.testapp}" />
967 <!-- only create apk if *not* a library project -->
968 <do-only-if-not-library elseText="Library project: do not create apk..." >
1002 <!-- no release builds for library project -->
1032 <property name="out.packaged.file" location="${out.absolute.dir}/${ant.project.name}-release-unsigned.apk" />
1033 <property name="out.final.file" location="${out.absolute.dir}/${ant.project.name}-release.apk" />
1069 <!-- only create apk if *not* a library project -->
1070 <do-only-if-not-library elseText="Library project: do not create apk..." >
1072 <property name="out.unaligned.file" location="${out.absolute.dir}/${ant.project.name}-release-unaligned.apk" />
1106 <!-- These targets are specific for the project under test when it
1111 <property name="out.packaged.file" location="${out.absolute.dir}/${ant.project.name}-instrumented-unaligned.apk" />
1112 <property name="out.final.file" location="${out.absolute.dir}/${ant.project.name}-instrumented.apk" />
1122 <!-- only create apk if *not* a library project -->
1123 <do-only-if-not-library elseText="Library project: do not create apk..." >
1133 <!-- ************ Test project specific targets ************ -->
1141 <!-- fails if the project is not a test project -->
1142 <target name="-test-project-check" depends="-setup">
1146 <isfalse value="${project.is.test}" />
1147 <isfalse value="${project.is.testapp}" />
1151 <fail message="Project is not a test project." />
1156 <target name="test" depends="-test-project-check"
1160 <if condition="${project.is.test}">
1162 <property name="tested.project.absolute.dir" location="${tested.project.dir}" />
1164 <!-- Application package of the tested project extracted from its manifest file -->
1165 <xpath input="${tested.project.absolute.dir}/AndroidManifest.xml"
1166 expression="/manifest/@package" output="tested.project.app.package" />
1170 <property name="tested.project.app.package" value="${project.app.package}" />
1175 value="/data/data/${tested.project.app.package}/coverage.ec" />
1187 <echo level="info">Downloading coverage file into project directory...</echo>
1196 <report sourcepath="${tested.project.absolute.dir}/${source.dir}"
1227 <!-- only do install if *not* a library project -->
1228 <do-only-if-not-library elseText="Library project: nothing to install!" >
1249 <!-- now install the tested project if applicable -->
1250 <!-- can't use project.is.test since the setup target might not have run -->
1254 <isset property="tested.project.dir" />
1261 <property name="tested.project.absolute.dir" location="${tested.project.dir}" />
1264 <condition property="tested.project.install.target" value="installi" else="installd">
1267 <subant target="${tested.project.install.target}" failonerror="true">
1268 <fileset dir="${tested.project.absolute.dir}" includes="build.xml" />
1307 <target name="installt" depends="-test-project-check, installd"
1316 <isset property="project.app.package" />
1319 <uninstall-helper app.package="${project.app.package}" />
1326 <!-- Now uninstall the tested project, if applicable -->
1330 <istrue value="${project.is.test}" />
1337 <property name="tested.project.absolute.dir" location="${tested.project.dir}" />
1339 <!-- Application package of the tested project extracted from its manifest file -->
1340 <xpath input="${tested.project.absolute.dir}/AndroidManifest.xml"
1341 expression="/manifest/@package" output="tested.project.app.package" />
1344 <isset property="tested.project.app.package" />
1347 <uninstall-helper app.package="${tested.project.app.package}" />
1374 <echo> current project and ignore the libraries using:</echo>
1379 <echo> current project and ignore the libraries using:</echo>
1383 <echo> test: Runs the tests. Project must be a test project and</echo>
1403 </project>