Author: [EMAIL PROTECTED]
Date: Mon Nov 10 16:52:26 2008
New Revision: 4012

Added:
     
releases/1.6/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWorkDir.java    
(contents, props changed)
     
releases/1.6/dev/core/src/com/google/gwt/dev/util/arg/OptionWorkDir.java    
(contents, props changed)

Log:
Meant to check these in too...

Added:  
releases/1.6/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWorkDir.java
==============================================================================
--- (empty file)
+++  
releases/1.6/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWorkDir.java    
 
Mon Nov 10 16:52:26 2008
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2006 Google Inc.
+ *
+ * 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 com.google.gwt.dev.util.arg;
+
+import com.google.gwt.util.tools.ArgHandlerDir;
+
+import java.io.File;
+
+/**
+ * Argument handler for processing the output directory flag.
+ */
+public final class ArgHandlerWorkDir extends ArgHandlerDir {
+
+  public static final String GWT_TMP_DIR = "gwt-tmp";
+
+  private final OptionWorkDir option;
+
+  public ArgHandlerWorkDir(OptionWorkDir option) {
+    this.option = option;
+  }
+
+  public String[] getDefaultArgs() {
+    return new String[] {
+        "-workDir",
+        new File(System.getProperty("java.io.tmpdir"),  
GWT_TMP_DIR).getAbsolutePath()};
+  }
+
+  public String getPurpose() {
+    return "The compiler work directory (must be writeable; defaults to  
system temp dir)";
+  }
+
+  public String getTag() {
+    return "-workDir";
+  }
+
+  @Override
+  public void setDir(File dir) {
+    option.setWorkDir(dir);
+  }
+
+}

Added:  
releases/1.6/dev/core/src/com/google/gwt/dev/util/arg/OptionWorkDir.java
==============================================================================
--- (empty file)
+++  
releases/1.6/dev/core/src/com/google/gwt/dev/util/arg/OptionWorkDir.java        
 
Mon Nov 10 16:52:26 2008
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2008 Google Inc.
+ *
+ * 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 com.google.gwt.dev.util.arg;
+
+import java.io.File;
+
+/**
+ * Option to set the compiler working directory.
+ */
+public interface OptionWorkDir {
+
+  /**
+   * Returns the compiler work directory.
+   */
+  File getWorkDir();
+
+  /**
+   * Sets the compiler work directory.
+   */
+  void setWorkDir(File dir);
+}

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to