Partially revert change 81ea0314

Partial revert of change 81ea0314ca2eeadcd918a7cf6570152d69260e21 in
order to fix build in Android Studio, since the repo environment isn't
available there.

Change-Id: I7696c1d1a7dac8fbc8721500db7c1152b2b479ad
diff --git a/build.gradle b/build.gradle
index 0942511..1340800 100644
--- a/build.gradle
+++ b/build.gradle
@@ -28,17 +28,8 @@
     gradleVersion = '1.8'
 }
 
-
-String outPath(String buildType) {
-    def repoInfo = "repo info platform/developers/build".execute().text
-    def buildPath = (repoInfo =~ /Mount path: (.*)/)[0][1]
-    return "${buildPath}/out/${buildType}/${samplegen.targetSampleName()}";
-}
-
-
-
 task emitAnt(type:Copy) {
-    def outputPath = outPath("ant");
+    def outputPath = "${samplegen.pathToBuild}/ant"
     def inputPath = "${project.projectDir}/${samplegen.targetSampleModule()}"
     mkdir outputPath
     into outputPath
@@ -56,7 +47,7 @@
 }
 
 task emitBrowseable(type:Copy) {
-    def outputPath =outPath("browseable");
+    def outputPath = "${samplegen.pathToBuild}/browsable"
     def inputPath = "${project.projectDir}/${samplegen.targetSampleModule()}"
     mkdir outputPath
     into outputPath