The classpath now seems to be correctly set, but I am getting "cannot
find symbol".
The error is however not in all classes where the symbol (class name) is
used.
This gives me the impression that the classes are compiled in the wrong
order.
BTW: within eclipse the project compiles with the same classpath with no
errors.
rzo wrote:
Found part of the problem:
The pattern for file matching should be:
~/.*\.jar/
rzo wrote:
Hello,
I am new to Gradle and have little knowledge of Ant or Maven.
I am missing an example for a simple script which would just compile
and jar a project.
The only helpful example I found :
http://www.alittlemadness.com/2008/11/28/maven-pain-gradle/
I am trying the following script. But I cannot get Gradle to use the
classpath.
I also had to comment out the name, since this causes an exception
(Readonly property)
So the next question is: how do I tell Gradle the name of the jar to
generate ?
- Ron
build.gradle:
defaultTasks "libs"
//name = 'test'
archivesBaseName = ''
version = 'alpha-4.2'
usePlugin('java')
sourceCompatibility = 1.5
targetCompatibility = 1.5
srcDirNames = ['.']
List findAllJars() {
result = []
new File('lib').eachDirRecurse(
{
dir ->
dir.eachFileMatch(
'.*\\.jar',
{
file ->
result.add(file)
})
})
result
}
compile.unmanagedClasspath = findAllJars()
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email