Permalink
Browse files

switch to @Grab for resolving custom resolver

  • Loading branch information...
1 parent 362c0ab commit 35fa2b15c2f148f2a17148e50834ea0e7fb040c3 @iamnoah committed Jun 16, 2011
View
@@ -11,11 +11,11 @@
<classpathentry kind="src" path="test/unit"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
- <classpathentry kind="src" path="tomcat-1.3.6-src-groovy">
+ <classpathentry kind="lib" path="/Users/noah/grails-1.3.6/lib/ivy-2.2.0.jar"/>
+ <classpathentry kind="src" path=".link_to_grails_plugins/tomcat-1.3.6/src/groovy">
<attributes>
<attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="lib" path="/Users/noah/grails-1.3.6/lib/ivy-2.2.0.jar"/>
<classpathentry kind="output" path="web-app/WEB-INF/classes"/>
</classpath>
View
@@ -24,9 +24,9 @@
</natures>
<linkedResources>
<link>
- <name>tomcat-1.3.6-src-groovy</name>
+ <name>.link_to_grails_plugins</name>
<type>2</type>
- <location>/Users/noah/.grails/1.3.6/projects/atg-grails/plugins/tomcat-1.3.6/src/groovy</location>
+ <locationURI>GRAILS_ROOT/1.3.6/projects/atg-core/plugins</locationURI>
</link>
</linkedResources>
</projectDescription>
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <installed facet="grails.app" version="1.0"/>
+</faceted-project>
@@ -1,3 +1,7 @@
+// TODO get jar into a public repo so this will work
+@GrabResolver(name="local", root="file:/Users/noah/.m2/repository/",m2Compatible="true")
+@Grab(group='com.noahsloan.atg',module="atg-resolver",version="1.0-SNAPSHOT")
+import com.noahsloan.atg.ivy.AtgModuleRepository
import java.io.File;
import java.util.List;
@@ -13,12 +17,7 @@ grails.project.dependency.resolution = {
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
-
- def myCL = new URLClassLoader([new File(
- "${basedir}/lib/atg-resolver-1.0-SNAPSHOT.jar"
- ).toURI().toURL()] as URL[],
- org.apache.ivy.plugins.repository.AbstractRepository.classLoader)
- resolver myCL.loadClass('com.noahsloan.atg.ivy.AtgModuleRepository').newResolver
+ resolver AtgModuleRepository.newResolver
repositories {
grailsPlugins()
Binary file not shown.
View
@@ -1,6 +1,6 @@
<plugin name='atg-core' version='0.1' grailsVersion='1.3.6 &gt; *'>
<author>Noah Sloan</author>
- <title>ATG Core Grails PLugin</title>
+ <title>ATG Core Grails Plugin</title>
<description>\
Plugin for creating Grails applications that utilize the ATG Core.
e.g., Nucleus, Repositories, and the DSP taglib.

0 comments on commit 35fa2b1

Please sign in to comment.