Skip to content

Commit

Permalink
Fix for #218
Browse files Browse the repository at this point in the history
  • Loading branch information
ssvaidyanathan committed Aug 18, 2023
1 parent dc06a49 commit c074080
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,14 @@ To delete the entire proxy or sharedflow, pass the options as `clean`
mvn clean install -P{profile} -Dbearer=$(gcloud auth print-access-token) -Dapigee.options=clean
```

### To just import the proxy or sharedflow without activating (v2.4.1 or later)

To just import the proxy or sharedflow without activating, pass the options as `inactive`

```
mvn clean install -P{profile} -Dbearer=$(gcloud auth print-access-token) -Dapigee.options=inactive
```

### To promote the proxy or sharedflow (v2.4.0 or later)

To promote an existing revision deployed to an Apigee org you can use the `apigee-enterprise:promote` goal
Expand Down
6 changes: 3 additions & 3 deletions samples/mockapi-recommended/src/gateway/shared-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<plugin>
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<executions>
<execution>
<id>configure-bundle</id>
Expand Down Expand Up @@ -106,7 +106,7 @@
<apigee.authtype>oauth</apigee.authtype> <!-- only option -->
<apigee.bearer>${bearer}</apigee.bearer> <!-- this takes precedence over service account file -->
<apigee.serviceaccount.file>${file}</apigee.serviceaccount.file>
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|clean-->
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|inactive|clean -->
<apigee.googletoken.email>${googleTokenEmail}</apigee.googletoken.email> <!-- Available in Apigee X and Apigee hybrid 1.6 + -->
</properties>
</profile>
Expand All @@ -121,7 +121,7 @@
<apigee.authtype>oauth</apigee.authtype> <!-- only option -->
<apigee.bearer>${bearer}</apigee.bearer> <!-- this takes precedence over service account file -->
<apigee.serviceaccount.file>${file}</apigee.serviceaccount.file>
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|clean-->
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|inactive|clean -->
<apigee.googletoken.email>${googleTokenEmail}</apigee.googletoken.email> <!-- Available in Apigee X and Apigee hybrid 1.6 + -->
</properties>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<plugin>
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<executions>
<execution>
<id>configure-bundle</id>
Expand Down Expand Up @@ -107,7 +107,7 @@
<apigee.authtype>oauth</apigee.authtype> <!-- only option -->
<apigee.bearer>${bearer}</apigee.bearer> <!-- this takes precedence over service account file -->
<apigee.serviceaccount.file>${file}</apigee.serviceaccount.file>
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|clean-->
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|inactive|clean -->
<apigee.googletoken.email>${googleTokenEmail}</apigee.googletoken.email> <!-- Available in Apigee X and Apigee hybrid 1.6 + -->
</properties>
</profile>
Expand All @@ -123,7 +123,7 @@
<apigee.authtype>oauth</apigee.authtype> <!-- only option -->
<apigee.bearer>${bearer}</apigee.bearer> <!-- this takes precedence over service account file -->
<apigee.serviceaccount.file>${file}</apigee.serviceaccount.file>
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|clean-->
<apigee.options>override</apigee.options> <!-- override is default. Other options are async|inactive|clean -->
<apigee.googletoken.email>${googleTokenEmail}</apigee.googletoken.email> <!-- Available in Apigee X and Apigee hybrid 1.6 + -->
</properties>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ enum State {
}

enum BUILDOPTIONS {
NULL,clean
NULL,clean,inactive
}

enum OPTIONS {
override,async,clean
override,async,clean,inactive
}

State state = State.START;
Expand Down Expand Up @@ -119,6 +119,10 @@ public void init() throws IOException, MojoFailureException,Exception {
Options.clean=true;
buildOption=BUILDOPTIONS.valueOf("clean");
break;
case inactive:
Options.inactive=true;
buildOption=BUILDOPTIONS.valueOf("inactive");
break;
default:
break;
}
Expand Down Expand Up @@ -295,6 +299,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
case clean:
doDelete();
break;
case inactive:
doImport();
break;
default:
break;
}
Expand Down

0 comments on commit c074080

Please sign in to comment.