-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serializationFormat slingxml with xml output for Sling-Initial-Content (
#26) * introduce serializationFormat "slingxml" to be used with the sling initial content instead of FileVault. This only changes the output file name and path to <clientlib name>.xml instead of <clientlib name>/.content.xml * update change log for serializationFileFormat slingxml * fix expected xml outputs: now with line breaks * fix return type
- Loading branch information
Showing
11 changed files
with
143 additions
and
35 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
8 changes: 7 additions & 1 deletion
8
test/expected/clientlibs-root/redirectOutputTestWithXML/.content.xml
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 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:ClientLibraryFolder" categories="[test.base.apps.six,test.categorie.in.config]" embed="[test.base.apps.thirdapp]" dependencies="test.base.apps.mainapp" allowProxy="{Boolean}true"/> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:ClientLibraryFolder" | ||
categories="[test.base.apps.six,test.categorie.in.config]" | ||
embed="[test.base.apps.thirdapp]" | ||
dependencies="test.base.apps.mainapp" | ||
allowProxy="{Boolean}true"/> |
7 changes: 7 additions & 0 deletions
7
test/expected/clientlibs-root/test.base.apps.serializationFormatSlingXML.xml
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:ClientLibraryFolder" | ||
categories="[test.base.apps.six,test.categorie.in.config]" | ||
embed="[test.base.apps.thirdapp]" | ||
dependencies="test.base.apps.mainapp" | ||
allowProxy="{Boolean}true"/> |
3 changes: 3 additions & 0 deletions
3
test/expected/clientlibs-root/test.base.apps.serializationFormatSlingXML/css.txt
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,3 @@ | ||
#base=style | ||
|
||
main.css |
3 changes: 3 additions & 0 deletions
3
test/expected/clientlibs-root/test.base.apps.serializationFormatSlingXML/js.txt
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,3 @@ | ||
#base=js | ||
|
||
secondapp-lib.js |
5 changes: 5 additions & 0 deletions
5
test/expected/clientlibs-root/test.base.apps.serializationFormatSlingXML/js/secondapp-lib.js
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,5 @@ | ||
|
||
"use strict"; | ||
var Test = function() { | ||
this.test = "test"; | ||
}; |
10 changes: 10 additions & 0 deletions
10
...pected/clientlibs-root/test.base.apps.serializationFormatSlingXML/resources/template.html
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,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
</head> | ||
<body> | ||
<h1>Test file</h1> | ||
</body> | ||
</html> |
3 changes: 3 additions & 0 deletions
3
test/expected/clientlibs-root/test.base.apps.serializationFormatSlingXML/style/main.css
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,3 @@ | ||
body { | ||
color: #000; | ||
} |
8 changes: 7 additions & 1 deletion
8
test/expected/clientlibs-root/test.base.apps.serializationFormatXML/.content.xml
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 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:ClientLibraryFolder" categories="[test.base.apps.six,test.categorie.in.config]" embed="[test.base.apps.thirdapp]" dependencies="test.base.apps.mainapp" allowProxy="{Boolean}true"/> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:ClientLibraryFolder" | ||
categories="[test.base.apps.six,test.categorie.in.config]" | ||
embed="[test.base.apps.thirdapp]" | ||
dependencies="test.base.apps.mainapp" | ||
allowProxy="{Boolean}true"/> |