Skip to content

Commit

Permalink
Cleanup - Simplify Groovy code
Browse files Browse the repository at this point in the history
Mainly removing optional semicolons.
  • Loading branch information
darxriggs committed Feb 14, 2019
1 parent 6d9d823 commit eb55325
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/main/preset-data/package.groovy
Expand Up @@ -21,21 +21,21 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
import org.apache.tools.ant.taskdefs.Zip;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Zip
import org.apache.tools.ant.Project

def baseDir = project.basedir;
def baseDir = project.basedir

File targetDir = new File(baseDir,"target/classes");
targetDir.mkdirs();
def targetDir = new File(baseDir, "target/classes")
targetDir.mkdirs()

File dataSetRoot = new File(baseDir,"src/main/preset-data");
def dataSetRoot = new File(baseDir, "src/main/preset-data")
dataSetRoot.eachDir { d ->
// if(!new File(d,"config.xml").exists()) return;
// if(!new File(d,"config.xml").exists()) return

Zip zip = new Zip();
zip.project = new Project();
zip.destFile = new File(targetDir,d.name+".zip");
zip.basedir = d;
zip.execute();
}
Zip zip = new Zip()
zip.project = new Project()
zip.destFile = new File(targetDir, d.name + ".zip")
zip.basedir = d
zip.execute()
}

0 comments on commit eb55325

Please sign in to comment.