Skip to content

Commit

Permalink
marklogic#7 Now supporting .sjs transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Jun 25, 2015
1 parent f62bbcd commit f833755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ publishUrl=file:../gh-pages-marklogic-java/releases
# 2.0.2 - XccAssetLoader added to DefaultModulesLoader
# 2.0.3 - Targeting Java 1.7
# 2.0.4 - Depending on com.marklogic:java-client-api:3.0.2
version=2.0.4
# 2.0.5 - Now supports *.sjs transforms
version=2.0.5
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ public File installTransform(File file, ExtensionMetadata metadata) {
logger.info(String.format("Loading %s transform from file %s", transformName, file));
if (FilenameUtil.isXslFile(file.getName())) {
mgr.writeXSLTransform(transformName, new FileHandle(file), metadata);
} else if (FilenameUtil.isJavascriptFile(file.getName())) {
mgr.writeJavascriptTransform(transformName, new FileHandle(file), metadata);
} else {
mgr.writeXQueryTransform(transformName, new FileHandle(file), metadata);
}
Expand Down

0 comments on commit f833755

Please sign in to comment.