There is a new Video available about the GIT Extension.
That Resource allows you to map Git directly for your source code.
Important:
IN LUCEE 5.2, the Extension is NOT available in the Admin, you need to download from download.lucee.org, this is because the Lucee 5.2 Admin only shows final releases and not Beta releases as we have in this case. Lucee 5.3 Admin will show it.
<cfscript>
gitExtensionIstalled = getVFSMetaData("git");
if (not(gitExtensionIstalled.enabled)){
echo("Lucee git extension not installed, please install via the server admin");
abort;
}
git="git://github.com/zspitzer/lucee-performance-analyzer.git!"; // note the !
files= DirectoryList(git,true,'query');
dump(var=files, top=10);
file = "git://github.com/zspitzer/lucee-performance-analyzer.git!/README.md";
dump(fileRead(file));
dump(getFileInfo(file));
resourceProviders = getPageContext().getConfig().getResourceProviders();
for (p in resourceProviders){
if (p.toString().indexOf("git") gt 1)
dump(p);
}
</cfscript>
the git repo is checked out into a folder like C:\tomcat\temp\gitres\18l92osk143g4\u6mgznjw4sj1\master
any errors get logged to your std-err log file
I am seeing the following error each time I access a git resource tho
-------------------------true
has pc
exception:
lucee.runtime.exp.ExpressionException: The key [git] does not exist.
at lucee.runtime.type.util.StructSupport.invalidKey(StructSupport.java:65)
at lucee.runtime.type.StructImpl.get(StructImpl.java:139)
at lucee.runtime.type.util.StructSupport.get(StructSupport.java:152)
at ch.rasia.extension.resource.git.GitResourceProvider.getGitProperties(GitResourceProvider.java:154)
at ch.rasia.extension.resource.git.GitResourceProvider.getResource(GitResourceProvider.java:106)
at lucee.commons.io.res.ResourcesImpl.getResource(ResourcesImpl.java:169)
at lucee.runtime.config.ConfigImpl.getResource(ConfigImpl.java:2314)
at lucee.commons.io.res.util.ResourceUtil.toResourceNotExisting(ResourceUtil.java:321)
at lucee.commons.io.res.util.ResourceUtil.toResourceNotExisting(ResourceUtil.java:315)
at lucee.runtime.functions.file.DirectoryList._call(DirectoryList.java:55)
at lucee.runtime.functions.file.DirectoryList.call(DirectoryList.java:39)
branch:master;repository:https://github.com/zspitzer/lucee-performance-analyzer.git
check pull repo
I think it’s always expecting/assuming that this.git = {}; is set in the application.cfc