1 54 55 package net.sourceforge.cobertura.ant; 56 57 import org.apache.tools.ant.taskdefs.Java; 58 import org.apache.tools.ant.types.Environment.Variable; 59 60 abstract class AntUtil 61 { 62 63 82 static void transferCoberturaDataFileProperty(Java task) 83 { 84 String coberturaProperty = System.getProperty("net.sourceforge.cobertura.datafile"); 85 if (coberturaProperty != null) 86 { 87 Variable sysproperty = new Variable(); 88 sysproperty.setKey("net.sourceforge.cobertura.datafile"); 89 sysproperty.setValue(coberturaProperty); 90 task.addSysproperty(sysproperty); 91 } 92 } 93 94 } 95 | Popular Tags |