1 /******************************************************************************* 2 * Copyright 2011 See AUTHORS file. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 ******************************************************************************/ 16 17 package com.badlogic.gdx.setup; 18 19 /** 20 * A file in a {@link Project}, the resourceName specifies the location 21 * of the template file, the outputName specifies the final name of the 22 * file relative to its project, the isTemplate field specifies if 23 * values need to be replaced in this file or not. 24 * @author badlogic 25 * 26 */ 27 public class ProjectFile { 28 /** the name of the template resource, relative to resourceLoc **/ 29 public String resourceName; 30 /** the name of the output file, including directories, relative to the project dir **/ 31 public String outputName; 32 /** whether to replace values in this file **/ 33 public boolean isTemplate; 34 /** If the resource is from resource directory, or working dir **/ 35 public String resourceLoc = "/com/badlogic/gdx/setup/resources/"; 36 ProjectFile(String name)37 public ProjectFile(String name) { 38 this.resourceName = name; 39 this.outputName = name; 40 this.isTemplate = true; 41 } 42 ProjectFile(String name, boolean isTemplate)43 public ProjectFile(String name, boolean isTemplate) { 44 this.resourceName = name; 45 this.outputName = name; 46 this.isTemplate = isTemplate; 47 } 48 ProjectFile(String resourceName, String outputName, boolean isTemplate)49 public ProjectFile(String resourceName, String outputName, boolean isTemplate) { 50 this.resourceName = resourceName; 51 this.outputName = outputName; 52 this.isTemplate = isTemplate; 53 } 54 }