Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (10 sloc) 0.518 kb
String projectHome = project.properties["project.home"];
if (projectHome == null) {
projectHome = project.basedir.parentFile.absolutePath;
projectHome = projectHome.replace("\\", "/");
project.properties["project.home"] = projectHome;
}
println "Project will be deployed to: " + projectHome;
java.net.InetAddress address = InetAddress.getByName(System.getenv("COMPUTERNAME"));
project.properties["ip.address"] = address.getHostAddress();
println "Computer IP Address: " + project.properties["ip.address"];
Jump to Line
Something went wrong with that request. Please try again.