Skip to content
This repository

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

file 11 lines (10 sloc) 0.518 kb
1 2 3 4 5 6 7 8 9 10 11
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"];
Something went wrong with that request. Please try again.