This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#357 Defaulting to using CMA except for servers
Moved prepareCommand into a new listener class
- Loading branch information
Showing
12 changed files
with
148 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
group=com.marklogic | ||
javadocsDir=../gh-pages-marklogic-java/javadocs | ||
version=3.15.develop | ||
mlJavaclientUtilVersion=3.12.0 | ||
mlJavaclientUtilVersion=3.13.develop | ||
mlJunitVersion=3.1.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/com/marklogic/appdeployer/impl/PrepareCommandListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.marklogic.appdeployer.impl; | ||
|
||
import com.marklogic.appdeployer.AppConfig; | ||
import com.marklogic.appdeployer.command.AbstractCommand; | ||
import com.marklogic.appdeployer.command.Command; | ||
|
||
import java.util.List; | ||
import java.util.regex.Pattern; | ||
|
||
public class PrepareCommandListener extends DeployerListenerSupport { | ||
|
||
@Override | ||
public void beforeCommandExecuted(Command command, DeploymentContext context, List<Command> remainingCommands) { | ||
if (command instanceof AbstractCommand) { | ||
AppConfig appConfig = context.getAppConfig(); | ||
String[] filenamesToIgnore = appConfig.getResourceFilenamesToIgnore(); | ||
Pattern excludePattern = appConfig.getResourceFilenamesExcludePattern(); | ||
Pattern includePattern = appConfig.getResourceFilenamesIncludePattern(); | ||
|
||
AbstractCommand abstractCommand = (AbstractCommand) command; | ||
if (filenamesToIgnore != null) { | ||
abstractCommand.setFilenamesToIgnore(filenamesToIgnore); | ||
} | ||
if (excludePattern != null) { | ||
abstractCommand.setResourceFilenamesExcludePattern(excludePattern); | ||
} | ||
if (includePattern != null) { | ||
abstractCommand.setResourceFilenamesIncludePattern(includePattern); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters