Closed yjy8749 closed 7 years ago
now i have a work around way to deal with,but it not so good.
def resolveCompile(sourceProject){
sourceProject.buildFile.eachLine {
line -> if(line.trim().startsWith("compile ")){
if(line.indexOf("project")>=0){
line = line.replace("'","\"")
def p = project(line.substring(line.indexOf("\"")+1,line.lastIndexOf("\"")))
project.dependencies.compile p
resolveCompile(p)
}else{
if(line.indexOf("libs")>=0){
line = line.trim().substring(line.indexOf("libs.")+1);
line = libs[line]
}else{
line = line.replace("'","\"")
line = line.substring(line.indexOf("\"")+1,line.lastIndexOf("\""));
}
if(line.indexOf("messaging")>=0){
println line
}
project.dependencies.compile line
}
}
}
}
dependencies{
resolveCompile(project)
}
java.lang.NoClassDefFoundError: com/project/c/CClass
access : http://localhost:8080/print I got java.lang.NoClassDefFoundError: com/project/c/CClass
How can i do for this?thanks