Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Issue 10905138: Add test jar generation logic for ant builds. (Closed)

Created:
8 years, 3 months ago by shashi
Modified:
8 years, 3 months ago
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, darin-cc_chromium.org, peter+watch_chromium.org, erikwright+watch_chromium.org, ilevy+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add test jar generation logic for ant builds. Add a new property generate.test.jar to ant scripts. When this property is set, a jar containing all compiled classes and referred classes is generated and placed in out/{Debug|Release}/test.lib.java directory. This makes it easier and cleaner to write ant build files for test apks. New directory structure for the build: Apks are placed in : out/{Debug|Release}/apks All java libraries in : out/{Debug|Release}/lib.java All test java libraries in : out/{Debug|Release}/test.lib.java This CL also includes cleanup to work with the modified output directory structure. BUG=146583 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157570

Patch Set 1 #

Patch Set 2 : fix indent in base.gyp. #

Total comments: 32

Patch Set 3 : Incorporate Chris's feedback . #

Patch Set 4 : Incorporate Chris's feedback. #

Patch Set 5 : rebase #

Total comments: 30

Patch Set 6 : #

Patch Set 7 : Yaron's feedback. #

Total comments: 2

Patch Set 8 : fix nits. #

Patch Set 9 : rebase #

Total comments: 4

Patch Set 10 : nitz #

Patch Set 11 : #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -95 lines) Patch
M build/all_android.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
M build/android/adb_install_content_shell View 1 chunk +2 lines, -1 line 0 comments Download
M build/android/ant/chromium-jars.xml View 1 2 3 4 5 6 chunks +6 lines, -13 lines 0 comments Download
M build/android/ant/common.xml View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
A build/android/ant/create-test-jar.js View 1 2 3 4 5 6 7 8 1 chunk +70 lines, -0 lines 0 comments Download
M build/android/ant/sdk-targets.xml View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -3 lines 0 comments Download
M build/android/buildbot/buildbot_functions.sh View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/constants.py View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M build/android/pylib/test_options_parser.py View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -7 lines 0 comments Download
M build/java.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M content/shell/android/java/content_shell_apk.xml View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -15 lines 0 comments Download
M content/shell/android/javatests/content_shell_test_apk.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +19 lines, -54 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
shashi
8 years, 3 months ago (2012-09-06 21:49:45 UTC) #1
cjhopman
http://codereview.chromium.org/10905138/diff/1019/base/base.gyp File base/base.gyp (right): http://codereview.chromium.org/10905138/diff/1019/base/base.gyp#newcode929 base/base.gyp:929: 'target_name': 'build_output_directories', Could you add a comment explaining why ...
8 years, 3 months ago (2012-09-06 22:33:41 UTC) #2
shashi
https://chromiumcodereview.appspot.com/10905138/diff/1019/base/base.gyp File base/base.gyp (right): https://chromiumcodereview.appspot.com/10905138/diff/1019/base/base.gyp#newcode929 base/base.gyp:929: 'target_name': 'build_output_directories', On 2012/09/06 22:33:41, cjhopman wrote: > Could ...
8 years, 3 months ago (2012-09-07 00:41:32 UTC) #3
shashi
base/, content/: bretw content/shell/android : yfriedman build: peter, yfriedman, cjhopman, nyquist
8 years, 3 months ago (2012-09-07 01:50:42 UTC) #4
Yaron
https://chromiumcodereview.appspot.com/10905138/diff/12004/base/base.gyp File base/base.gyp (right): https://chromiumcodereview.appspot.com/10905138/diff/12004/base/base.gyp#newcode929 base/base.gyp:929: # Target for creating common output build directories. Seems ...
8 years, 3 months ago (2012-09-07 19:19:31 UTC) #5
cjhopman
http://codereview.chromium.org/10905138/diff/12004/base/base.gyp File base/base.gyp (right): http://codereview.chromium.org/10905138/diff/12004/base/base.gyp#newcode939 base/base.gyp:939: 'action_name': 'create_output_dirs', Maybe rename this to create_java_output_dirs. http://codereview.chromium.org/10905138/diff/12004/build/android/pylib/test_options_parser.py File ...
8 years, 3 months ago (2012-09-07 19:50:35 UTC) #6
shashi
https://chromiumcodereview.appspot.com/10905138/diff/12004/content/shell/android/javatests/content_shell_test_apk.xml File content/shell/android/javatests/content_shell_test_apk.xml (left): https://chromiumcodereview.appspot.com/10905138/diff/12004/content/shell/android/javatests/content_shell_test_apk.xml#oldcode48 content/shell/android/javatests/content_shell_test_apk.xml:48: <!-- copy gdbserver to main libs directory if building ...
8 years, 3 months ago (2012-09-07 20:53:05 UTC) #7
shashi
https://chromiumcodereview.appspot.com/10905138/diff/12004/content/shell/android/java/content_shell_apk.xml File content/shell/android/java/content_shell_apk.xml (left): https://chromiumcodereview.appspot.com/10905138/diff/12004/content/shell/android/java/content_shell_apk.xml#oldcode41 content/shell/android/java/content_shell_apk.xml:41: <!-- We expect PRODUCT_DIR to be set like the ...
8 years, 3 months ago (2012-09-07 21:02:29 UTC) #8
shashi
I verified that ContentShellTest.apk does not have any c++ code or .so library, so makes ...
8 years, 3 months ago (2012-09-07 23:31:31 UTC) #9
Yaron
lgtm but please wait for Chris' approval https://chromiumcodereview.appspot.com/10905138/diff/12004/build/android/adb_install_content_shell File build/android/adb_install_content_shell (right): https://chromiumcodereview.appspot.com/10905138/diff/12004/build/android/adb_install_content_shell#newcode20 build/android/adb_install_content_shell:20: constants.SDK_BUILD_APKS_DIR, 'ContentShell-debug.apk') ...
8 years, 3 months ago (2012-09-10 19:58:10 UTC) #10
shashi
content/: brettw , very short code review, only changes are in gyp output directory for ...
8 years, 3 months ago (2012-09-11 17:43:36 UTC) #11
brettw
lgtm
8 years, 3 months ago (2012-09-11 18:19:54 UTC) #12
shashi
8 years, 3 months ago (2012-09-12 21:31:34 UTC) #13
cjhopman
http://codereview.chromium.org/10905138/diff/9008/build/android/ant/create-test-jar.js File build/android/ant/create-test-jar.js (right): http://codereview.chromium.org/10905138/diff/9008/build/android/ant/create-test-jar.js#newcode62 build/android/ant/create-test-jar.js:62: echo.setMessage("Creating test jar: " + You have almost the ...
8 years, 3 months ago (2012-09-13 00:07:02 UTC) #14
shashi
http://codereview.chromium.org/10905138/diff/9008/content/shell/android/java/content_shell_apk.xml File content/shell/android/java/content_shell_apk.xml (right): http://codereview.chromium.org/10905138/diff/9008/content/shell/android/java/content_shell_apk.xml#newcode31 content/shell/android/java/content_shell_apk.xml:31: <property name="generate.test.jar" value="true"/> The jar created here is referred ...
8 years, 3 months ago (2012-09-13 01:12:51 UTC) #15
shashi
8 years, 3 months ago (2012-09-18 18:47:53 UTC) #16
cjhopman
lgtm https://chromiumcodereview.appspot.com/10905138/diff/17001/build/all_android.gyp File build/all_android.gyp (right): https://chromiumcodereview.appspot.com/10905138/diff/17001/build/all_android.gyp#newcode119 build/all_android.gyp:119: # Target for creating common output build directories. ...
8 years, 3 months ago (2012-09-18 21:40:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shashishekhar@chromium.org/10905138/26004
8 years, 3 months ago (2012-09-18 21:57:11 UTC) #18
shashi
8 years, 3 months ago (2012-09-18 21:57:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shashishekhar@chromium.org/10905138/26004
8 years, 3 months ago (2012-09-18 21:57:54 UTC) #20
commit-bot: I haz the power
8 years, 3 months ago (2012-09-18 22:14:09 UTC) #21
Retried try job too often for step(s) interactive_ui_tests, jingle_unittests,
gpu_unittests, base_unittests, sync_integration_tests, sql_unittests,
chrome_frame_unittests, content_unittests, safe_browsing_tests, ipc_tests,
mini_installer_test, cacheinvalidation_unittests, remoting_unittests,
browser_tests, net_unittests, installer_util_unittests, chrome_frame_net_tests,
check_deps, crypto_unittests, unit_tests, nacl_integration, media_unittests,
content_browsertests, printing_unittests, sync_unit_tests

Powered by Google App Engine
This is Rietveld 408576698