This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 204
/
build.xml
71 lines (58 loc) · 3.15 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
*
* Copyright 2013 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
-->
<!-- Set name to the application name: used for BAR/COD and directory on file system -->
<project default="build" basedir="." name="GSECryptoTest">
<!-- Concatenation destinations -->
<property name="jsconcat" value="scripts.js"/>
<property name="cssconcat" value="styles.css"/>
<!-- Fail the build on JSLint, JSHint, CSSLint errors -->
<property name="lintfail" value="false"/>
<!-- Include the Properties and Targets -->
<!--
The ${ant.home} variable will only work if running the Ant included in this repository. On Mac, which uses its own Ant, set a direct file path here.
The buildProperties.xml file is optional but allows you to separate out certain settings, like passwords.
-->
<!-- <include file="${ant.home}/../buildProperties.xml" /> -->
<property name="include.path" value="C:/Users/robwilliams/Documents/git/BB10-WebWorks-Community-Samples/Ant-Build-Script/tools/" />
<include file="${include.path}/buildTasks.xml" />
<!-- Default Build - Change as needed to the sdk and build properties you want:
build.test (build in all SDKs+Ripple with WebInspector, source output, and debug token for Tablet and BB10)
build.prod (build in all SDKs+Ripple with signing and no debugging, and a build id number for Tablet and BB10)
build.beta (build in all SDKs+Ripple with signing _and_ debugging, and a build id number for Tablet and BB10)
build.ripple (deploy to your file system for serving up in Ripple)
Specific builds follow the pattern:
build.[bbos, tablet, bb10].[test, prod, beta]
- use bbos for BlackBerry 5 through 7.x smartphones
- tablet for PlayBook 1.x through 2.x
- bb10 for BlackBerry 10
- use test for WebInspector, source output, and debug tokens. Java builds will only run on simulators.
- use prod for regular signing with a build id and no debugging.
- use beta for regular signing with a build id and WebInspector turned on.
Lint/Hint and Minify targets can be included before the build here
build.optimize runs both lint and minify tasks
build.lint runs jslint, jshint and csslint
build.minify concatenates and minifies the JS and CSS files
Deployment commands follow the pattern:
build.deploy.[bb10.[device, sim], tablet, bbos].[test, prod, beta]
- bb10, tablet, bbos as defined above
- only for bb10 builds, use device for real devices and sim for VMWare based simulators
- test, prod, beta to load the matching build created above
-->
<target name="build" depends="build.bb10.test"></target>
</project>