Subversion Repositories DevTools

Rev

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

Rev 7056 Rev 7470
Line 43... Line 43...
43
#               Aguments that can be provided by the user
43
#               Aguments that can be provided by the user
44
#                -Jar=name                  - Name of a Jar to include
44
#                -Jar=name                  - Name of a Jar to include
45
#                -Aar=name                  - Name of an Aar to include
45
#                -Aar=name                  - Name of an Aar to include
46
#                -lname                     - Name of a Jats library to include
46
#                -lname                     - Name of a Jats library to include
47
#                -Lname                     - Name of a 3rd party library to include
47
#                -Lname                     - Name of a 3rd party library to include
-
 
48
#                -gradleProps=file          - Gradle properties that will be appended to the gradle.properties
48
#
49
#
49
# Note: This function may be provided by several packages, 
50
# Note: This function may be provided by several packages, 
50
#       thus the interface must not change - this include the name of 
51
#       thus the interface must not change - this include the name of 
51
#       this file. See the AndroidBuilder package too.
52
#       this file. See the AndroidBuilder package too.
52
#
53
#
Line 90... Line 91...
90
my $opt_hastests;
91
my $opt_hastests;
91
my @opt_jlibs;                  # List of Jats Libraries
92
my @opt_jlibs;                  # List of Jats Libraries
92
my @opt_elibs;                  # List of 3rd party libraries
93
my @opt_elibs;                  # List of 3rd party libraries
93
my @opt_jars;                   # List of JARs
94
my @opt_jars;                   # List of JARs
94
my @opt_aars;                   # List of AARs
95
my @opt_aars;                   # List of AARs
-
 
96
my $opt_gprops;                 # Extra gradle props files
95
 
97
 
96
#
98
#
97
#   Configuration
99
#   Configuration
98
#   Map JATS platforms to Shared library targets
100
#   Map JATS platforms to Shared library targets
99
#       The key is a JATS name for the target
101
#       The key is a JATS name for the target
Line 152... Line 154...
152
                "populate"      => \$opt_populate,      # flag
154
                "populate"      => \$opt_populate,      # flag
153
                "autotest"      => \$opt_autotest,      # flag
155
                "autotest"      => \$opt_autotest,      # flag
154
                "hastests"      => \$opt_hastests,      # flag
156
                "hastests"      => \$opt_hastests,      # flag
155
                "Jar=s"         => \@opt_jars,
157
                "Jar=s"         => \@opt_jars,
156
                "Aar=s"         => \@opt_aars,
158
                "Aar=s"         => \@opt_aars,
-
 
159
                "GradleProps=s" => \$opt_gprops,
157
                );
160
                );
158
 
161
 
159
#
162
#
160
#   Restore signal handlers and report parse errors
163
#   Restore signal handlers and report parse errors
161
#
164
#
Line 496... Line 499...
496
                $data->setProperty( $pkg->getUnifiedName('GBE_MVN_') , NicePath($mvnDir));
499
                $data->setProperty( $pkg->getUnifiedName('GBE_MVN_') , NicePath($mvnDir));
497
            }
500
            }
498
        }
501
        }
499
    }
502
    }
500
 
503
 
-
 
504
    #
-
 
505
    #   Append user specified graadle properties
-
 
506
    #
-
 
507
    if ($opt_gprops) {
-
 
508
        Error("Gradle properties not found: $opt_gprops") unless -f $opt_gprops;
-
 
509
        $data->load($opt_gprops);
-
 
510
    }
-
 
511
 
501
    $data->store( $gradleProperies );
512
    $data->store( $gradleProperies );
502
 
513
 
503
    #
514
    #
504
    #   Create the local.properties file
515
    #   Create the local.properties file
505
    #       It needs to be in the projects root directory
516
    #       It needs to be in the projects root directory