-
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.
#49 Loading asset modules for all paths first, then loading all other…
… modules
- Loading branch information
Showing
3 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ain/java/com/rjrudin/marklogic/appdeployer/command/modules/AllButAssetsModulesFinder.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,21 @@ | ||
package com.rjrudin.marklogic.appdeployer.command.modules; | ||
|
||
import java.io.File; | ||
|
||
import com.rjrudin.marklogic.modulesloader.Modules; | ||
import com.rjrudin.marklogic.modulesloader.impl.BaseModulesFinder; | ||
|
||
public class AllButAssetsModulesFinder extends BaseModulesFinder { | ||
|
||
@Override | ||
public Modules findModules(File baseDir) { | ||
Modules modules = new Modules(); | ||
addNamespaces(modules, baseDir); | ||
addOptions(modules, baseDir); | ||
addPropertiesFile(modules, baseDir); | ||
addServices(modules, baseDir); | ||
addTransforms(modules, baseDir); | ||
return modules; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/rjrudin/marklogic/appdeployer/command/modules/AssetModulesFinder.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,16 @@ | ||
package com.rjrudin.marklogic.appdeployer.command.modules; | ||
|
||
import java.io.File; | ||
|
||
import com.rjrudin.marklogic.modulesloader.Modules; | ||
import com.rjrudin.marklogic.modulesloader.impl.BaseModulesFinder; | ||
|
||
public class AssetModulesFinder extends BaseModulesFinder { | ||
|
||
@Override | ||
public Modules findModules(File baseDir) { | ||
Modules modules = new Modules(); | ||
addAssets(modules, baseDir); | ||
return modules; | ||
} | ||
} |
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