Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfb46b3
commit 59c9544
Showing
9 changed files
with
59 additions
and
68 deletions.
There are no files selected for viewing
Binary file not shown.
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
Binary file not shown.
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 was deleted.
Oops, something went wrong.
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,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- This file is auto-generated, do not edit! -jm --> | ||
<GapSourceDictionary> | ||
<FilePath Value="www\index.html"/> | ||
<FilePath Value="www\master.css"/> | ||
<FilePath Value="www\phonegap-1.1.0.js"/> | ||
<FilePath Value="www\index.html"/> | ||
<FilePath Value="www\master.css"/> | ||
<FilePath Value="www\phonegap-1.1.0.js"/> | ||
</GapSourceDictionary> | ||
|
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,40 @@ | ||
|
||
var objArgs = WScript.Arguments; | ||
for (i = 0; i < objArgs.length; i++) | ||
{ | ||
WScript.Echo("Arg :: " + objArgs(i)); | ||
} | ||
|
||
|
||
var fso = WScript.CreateObject("Scripting.FileSystemObject"); | ||
|
||
var folder = fso.GetFolder("..\\..\\www"); | ||
|
||
var outFile = fso.CreateTextFile("..\\..\\GapSourceDictionary.xml", true); | ||
|
||
outFile.WriteLine('<?xml version="1.0" encoding="utf-8"?>'); | ||
outFile.WriteLine('<!-- This file is auto-generated, do not edit! -jm -->'); | ||
outFile.WriteLine('<GapSourceDictionary>'); | ||
|
||
function enumerateFolder(folder,parentPath) | ||
{ | ||
var files = new Enumerator(folder.files); | ||
while(!files.atEnd()) | ||
{ | ||
WScript.Echo(parentPath + "\\" + fso.GetFileName(files.item())); | ||
outFile.WriteLine(' <FilePath Value="' + parentPath + "\\" + fso.GetFileName(files.item()) + '"/>'); | ||
files.moveNext(); | ||
} | ||
|
||
var subFolders = new Enumerator(folder.SubFolders); | ||
while(!subFolders.atEnd()) | ||
{ | ||
var item = subFolders.item(); | ||
enumerateFolder(item, parentPath + "\\" + fso.GetFileName(item)); | ||
subFolders.moveNext(); | ||
} | ||
} | ||
enumerateFolder(folder,"www"); | ||
|
||
outFile.WriteLine('</GapSourceDictionary>'); | ||
|
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