Newbie getting frustrated about using gradle coming from ant world


(Narahari Lakshminarayana) #1

Newbie question:

Here is my gradle file

apply plugin: 'java'
apply plugin: 'eclipse'
  sourceCompatibility = 1.5
version = '1.0'
jar {
    manifest {
        attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
    }
}
  dependencies {
 // Create a file tree with a base directory
 File thedir = new File('c:/selenium/seleniumjars')
 FileTree tree = fileTree(dir: thedir)
   // Add include and exclude patterns to the tree
 tree.include '**/*.jar'
 tree.exclude 'HRIIComponents.jar'
   println tree
    compile fileTree (tree)
}
sourceSets {
    main {
        java {
            srcDir 'C:/selenium/Production/HRII/Components'
        }
    }
}

I am not sure what is wrong with the above file, but I am seeing

“Could not normalize path for file ‘C:\selenium\Production\HRII\Components\directory ‘c:\selenium\seleniumjars’’.”

Please help me and Do Not Flame Me Please…


(Peter Niederwieser) #2

Please give the exact full error message, enclosed in HTML code tags.