Skip to content

Commit

Permalink
fix problem with GSP class name
Browse files Browse the repository at this point in the history
The problem comes up in a multi project build if one of the subproject names has a hyphen in it (cache-gemfire, as an example).  "cache-gemfire" ends up being part of the generated GSP class name which is invalid.
  • Loading branch information
Jeff Scott Brown committed Jan 29, 2015
1 parent 5a37735 commit dcff0e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class GroovyPageCompiler {
packageDir += generateJavaName(relPackagePath)
}

def className = packageDir.replace('/','_')
def className = generateJavaName(packageDir.replace('/','_'))

className += generateJavaName(gspfile.name)
// using default package because of GRAILS-5022
packageDir = ''
Expand Down

0 comments on commit dcff0e4

Please sign in to comment.