Subversion Repositories DevTools

Rev

Rev 5412 | Rev 6351 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5412 Rev 5444
Line 37... Line 37...
37
#                -pn=PackageName            - Package Name
37
#                -pn=PackageName            - Package Name
38
#                -pv=PackageVersion         - Package Version
38
#                -pv=PackageVersion         - Package Version
39
#                -clean                     - Will clean the build
39
#                -clean                     - Will clean the build
40
#                -populate                  - Test Env and Populate 'libs'
40
#                -populate                  - Test Env and Populate 'libs'
41
#                -autotest                  - Run Unit Tests
41
#                -autotest                  - Run Unit Tests
-
 
42
#                -hasTests                  - Build unit tests too    
42
#               Aguments that can be provided by the user
43
#               Aguments that can be provided by the user
43
#                -Jar=name                  - Name of a Jar to include
44
#                -Jar=name                  - Name of a Jar to include
44
#                -Aar=name                  - Name of an Aar to include
45
#                -Aar=name                  - Name of an Aar to include
45
#                -lname                     - Name of a Jats library to include
46
#                -lname                     - Name of a Jats library to include
46
#                -Lname                     - Name of a 3rd party library to include
47
#                -Lname                     - Name of a 3rd party library to include
Line 81... Line 82...
81
my $opt_pkgname;
82
my $opt_pkgname;
82
my $opt_pkgversion;
83
my $opt_pkgversion;
83
my $opt_platform;
84
my $opt_platform;
84
my $opt_populate;
85
my $opt_populate;
85
my $opt_autotest;
86
my $opt_autotest;
-
 
87
my $opt_hastests;
86
my @opt_jlibs;                  # List of Jats Libraries
88
my @opt_jlibs;                  # List of Jats Libraries
87
my @opt_elibs;                  # List of 3rd party libraries
89
my @opt_elibs;                  # List of 3rd party libraries
88
my @opt_jars;                   # List of JARs
90
my @opt_jars;                   # List of JARs
89
my @opt_aars;                   # List of AARs
91
my @opt_aars;                   # List of AARs
90
 
92
 
Line 137... Line 139...
137
                "pv=s"          => \$opt_pkgversion,    # string
139
                "pv=s"          => \$opt_pkgversion,    # string
138
                "pf=s"          => \$opt_platform,      # string
140
                "pf=s"          => \$opt_platform,      # string
139
                "clean"         => \$opt_clean,         # flag
141
                "clean"         => \$opt_clean,         # flag
140
                "populate"      => \$opt_populate,      # flag
142
                "populate"      => \$opt_populate,      # flag
141
                "autotest"      => \$opt_autotest,      # flag
143
                "autotest"      => \$opt_autotest,      # flag
-
 
144
                "hastests"      => \$opt_hastests,      # flag
142
                "Jar=s"         => \@opt_jars,
145
                "Jar=s"         => \@opt_jars,
143
                "Aar=s"         => \@opt_aars,
146
                "Aar=s"         => \@opt_aars,
144
                );
147
                );
145
 
148
 
146
#
149
#
Line 319... Line 322...
319
    #   Build the project - does not run unit tests
322
    #   Build the project - does not run unit tests
320
    #       assemble all the code
323
    #       assemble all the code
321
    #       assemble code for unit tests -  does not run unit tests 
324
    #       assemble code for unit tests -  does not run unit tests 
322
    #
325
    #
323
    Message ("Build the android project: $androidBuildSuffix");
326
    Message ("Build the android project: $androidBuildSuffix");
-
 
327
    my @tasks;
-
 
328
    push (@tasks, 'assemble'. $androidBuildSuffix); 
-
 
329
    push (@tasks, 'assemble' . $androidBuildSuffix . 'UnitTest') if $opt_hastests;
324
    $rv = runGradle('assemble'. $androidBuildSuffix , 'assemble' . $androidBuildSuffix . 'UnitTest');
330
    $rv = runGradle('assemble'. $androidBuildSuffix , 'assemble' . $androidBuildSuffix . 'UnitTest');
325
    Error("Cannot build AndroidStudio project") if $rv;
331
    Error("Cannot build AndroidStudio project") if $rv;
326
}
332
}
327
else
333
else
328
{
334
{