Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. @echo off
  2. REM
  3. REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  4. REM
  5. REM Copyright (c) 1997-2011 Oracle and/or its affiliates. All rights reserved.
  6. REM
  7. REM The contents of this file are subject to the terms of either the GNU
  8. REM General Public License Version 2 only ("GPL") or the Common Development
  9. REM and Distribution License("CDDL") (collectively, the "License"). You
  10. REM may not use this file except in compliance with the License. You can
  11. REM obtain a copy of the License at
  12. REM https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
  13. REM or packager/legal/LICENSE.txt. See the License for the specific
  14. REM language governing permissions and limitations under the License.
  15. REM
  16. REM When distributing the software, include this License Header Notice in each
  17. REM file and include the License file at packager/legal/LICENSE.txt.
  18. REM
  19. REM GPL Classpath Exception:
  20. REM Oracle designates this particular file as subject to the "Classpath"
  21. REM exception as provided by Oracle in the GPL Version 2 section of the License
  22. REM file that accompanied this code.
  23. REM
  24. REM Modifications:
  25. REM If applicable, add the following below the License Header, with the fields
  26. REM enclosed by brackets [] replaced by your own identifying information:
  27. REM "Portions Copyright [year] [name of copyright owner]"
  28. REM
  29. REM Contributor(s):
  30. REM If you wish your version of this file to be governed by only the CDDL or
  31. REM only the GPL Version 2, indicate your decision by adding "[Contributor]
  32. REM elects to include this software in this distribution under the [CDDL or GPL
  33. REM Version 2] license." If you don't indicate a single choice of license, a
  34. REM recipient has the option to distribute your version of this file under
  35. REM either the CDDL, the GPL Version 2 or to extend the choice of license to
  36. REM its licensees as provided above. However, if you add GPL Version 2 code
  37. REM and therefore, elected the GPL Version 2 license, then the option applies
  38. REM only if the new code is made subject to such option by the copyright
  39. REM holder.
  40. REM
  41.  
  42. REM Always use JDK 1.6 or higher
  43. REM Depends on Java from ..\config\asenv.bat
  44. VERIFY OTHER 2>nul
  45. setlocal ENABLEEXTENSIONS
  46. if ERRORLEVEL 0 goto ok
  47. echo "Unable to enable extensions"
  48. exit /B 1
  49. :ok
  50. call "%~dp0..\config\asenv.bat"
  51. if "%AS_JAVA%x" == "x" goto UsePath
  52. set JAVA="%AS_JAVA%\bin\java"
  53. goto run
  54. :UsePath
  55. set JAVA=java
  56. :run
  57.  
  58. IF "%1" == "start-domain" (
  59. echo "Removing generated folder..."
  60. rd /s /q ..\domains\"%2"\generated
  61. ping 1.1.1.1 -n 1 -w 3000 > nul
  62. )
  63. %JAVA% -Xms2048M -Xmx2048M -jar "%~dp0..\modules\admin-cli.jar" %*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement