-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overwriting files in an alfresco WAR with an AMP should work, also when using the `alfrescoWar` task. It appears that this issue was already fixed as a side-effect of f493862 (PR #220), where duplicates strategy was changed from EXCLUDE to INCLUDE.
- Loading branch information
1 parent
bb17e8c
commit 76a3651
Showing
3 changed files
with
46 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
plugins { | ||
id "base" | ||
id "eu.xenit.docker-alfresco" | ||
id "eu.xenit.alfresco" version "1.1.0" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
alfrescoPublic() | ||
} | ||
|
||
dependencies { | ||
baseAlfrescoWar "org.alfresco:content-services-community:6.1.2-ga@war" | ||
alfrescoAmp 'eu.xenit.alfresco:alfresco-hotfix-MNT-20557:1.0.2@amp' | ||
} | ||
|
||
task integrationTest { | ||
dependsOn(tasks.alfrescoWar.archiveFile, configurations.alfrescoAmp) | ||
doFirst { | ||
java.io.File alfrescoJsrApiFile = project.zipTree(tasks.alfrescoWar.archiveFile) | ||
.matching { | ||
include("WEB-INF/lib/jsr250-api-1.0.jar") | ||
} | ||
.singleFile | ||
|
||
java.io.File ampJsrApiFile = project.zipTree(configurations.alfrescoAmp.singleFile) | ||
.matching { | ||
include "lib/jsr250-api-1.0.jar" | ||
} | ||
.singleFile | ||
|
||
println "Alfresco jsr250-api: ${alfrescoJsrApiFile}" | ||
println "AMP jsr250-api: ${ampJsrApiFile}" | ||
|
||
assert alfrescoJsrApiFile.bytes == ampJsrApiFile.bytes | ||
} | ||
} |