OSDN Git Service

fixed up setup ui
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-setup-ui / src / aurelienribon / gdxsetupui / Helper.java
index 95ddbc9..19e8e9e 100644 (file)
@@ -1,16 +1,34 @@
+/*******************************************************************************
+ * Copyright 2011 See AUTHORS file.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
 package aurelienribon.gdxsetupui;
 
-import aurelienribon.utils.XmlUtils;
 import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
+
 import javax.xml.xpath.XPathConstants;
+
 import org.apache.commons.io.FilenameUtils;
 import org.w3c.dom.Document;
 import org.w3c.dom.NodeList;
 import org.xml.sax.SAXException;
 
+import aurelienribon.utils.XmlUtils;
+
 /**
  * @author Aurelien Ribon | http://www.aurelienribon.com/
  */
@@ -50,6 +68,10 @@ public class Helper {
        public static String getHtmlPrjPath(BaseProjectConfiguration cfg) {
                return FilenameUtils.normalize(cfg.destinationPath + "/" + cfg.projectName + cfg.suffixHtml + "/", true);
        }
+       
+       public static String getRobovmPrjPath (ProjectUpdateConfiguration cfg) {
+               return FilenameUtils.normalize(cfg.destinationPath + "/" + cfg.projectName + cfg.suffixRobovm + "/", true);
+       }
 
        // -------------------------------------------------------------------------
        // Classpath
@@ -286,4 +308,4 @@ public class Helper {
                        return name.compareTo(o.name);
                }
        }
-}
+}
\ No newline at end of file