Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

created new path component/standalone for standalone components

- like shrink-wrapped libs
- moved existing 'storage' there
  • Loading branch information...
commit 37939eaa82bbf22d0ea521dda3856e104f1b238f 1 parent a5149fb
@thron7 thron7 authored
View
7 component/standalone/server/.gitignore
@@ -0,0 +1,7 @@
+# .gitignore template for skeleton-based apps
+/api/
+/build/
+/inspector/
+/simulator/
+/test/
+/source/script/
View
85 component/standalone/server/config.json
@@ -0,0 +1,85 @@
+{
+ "name" : "server",
+
+ "include" :
+ [
+ {
+ "path" : "${QOOXDOO_PATH}/tool/data/config/application.json"
+ }
+ ],
+
+ "export" :
+ [
+ "api",
+ "api-data",
+ "build",
+ "clean",
+ "distclean",
+ "fix",
+ "info",
+ "inspector",
+ "lint",
+ "migration",
+ "pretty",
+ "profiling",
+ "source",
+ "source-all",
+ "source-hybrid",
+ "simulation-build",
+ "simulation-run",
+ "test",
+ "test-source",
+ "translation"
+ ],
+
+ "default-job" : "source-hybrid",
+
+ "let" :
+ {
+ "APPLICATION" : "server",
+ "QOOXDOO_PATH" : "../../..",
+ "QXTHEME" : "server.theme.Theme",
+ "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*", "${APPLICATION}.simulation.*"],
+ "LOCALES" : [ "en" ],
+ "CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache",
+ "ROOT" : "."
+ },
+
+ // You only need to edit the remainder of this file, if you want to customize
+ // specific jobs, or add own job definitions.
+
+ "jobs" :
+ {
+ // Uncomment the following entry to add a contrib or library to your
+ // project; make sure to adapt the path to the Manifest.json; if you are
+ // using a contrib: library, it will be downloaded into the path specified
+ // by the 'cache/downloads' config key
+ /*
+ "libraries" :
+ {
+ "library" :
+ [
+ {
+ "manifest" : "contrib://SkeletonApplication/trunk/Manifest.json"
+ }
+ ]
+ }
+ */
+
+ // If you want to tweak a job setting, see the following sample where
+ // the "format" feature of the "build-script" job is overridden.
+ // To see a list of available jobs, invoke 'generate.py x'.
+ /*
+ ,"build-script" :
+ {
+ "compile-options" :
+ {
+ "code" :
+ {
+ "format" : false
+ }
+ }
+ }
+ */
+ }
+}
View
108 component/standalone/server/generate.py
@@ -0,0 +1,108 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2008 - 2012 1&1 Internet AG, Germany, http://www.1und1.de
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Thomas Herchenroeder (thron7)
+#
+################################################################################
+
+##
+# This is a stub proxy for the real generator.py
+##
+
+import sys, os, re, subprocess, codecs
+
+CMD_PYTHON = sys.executable
+QOOXDOO_PATH = '../../..'
+
+# this is from misc.json, duplicated for decoupling
+_eolComment = re.compile(r'(?<![a-zA-Z]:)//.*$', re.M) # double $ for string.Template
+_mulComment = re.compile(r'/\*.*?\*/', re.S)
+def stripComments(s):
+ b = _eolComment.sub('',s)
+ b = _mulComment.sub('',b)
+ return b
+
+def getQxPath():
+ path = QOOXDOO_PATH
+ # OS env takes precedence
+ if os.environ.has_key("QOOXDOO_PATH"):
+ path = os.environ["QOOXDOO_PATH"]
+
+ # else use QOOXDOO_PATH from config.json
+ elif os.path.exists('config.json'):
+ # try json parsing with qx json
+ if not path.startswith('${'): # template macro has been resolved
+ sys.path.insert(0, path)
+ try:
+ from misc import json
+ got_json = True
+ except:
+ got_json = False
+
+ got_path = False
+ if got_json:
+ config_str = codecs.open('config.json', "r", "utf-8").read()
+ config_str = stripComments(config_str)
+ config = json.loads(config_str)
+ p = config.get("let")
+ if p:
+ p = p.get("QOOXDOO_PATH")
+ if p:
+ path = p
+ got_path = True
+
+ # regex parsing - error prone
+ if not got_path:
+ qpathr=re.compile(r'"QOOXDOO_PATH"\s*:\s*"([^"]*)"\s*,?')
+ conffile = open('config.json')
+ aconffile = conffile.readlines()
+ for line in aconffile:
+ mo = qpathr.search(line)
+ if mo:
+ path = mo.group(1)
+ break # assume first occurrence is ok
+
+ path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), path))
+
+ return path
+
+os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) # switch to skeleton dir
+qxpath = getQxPath()
+REAL_GENERATOR = os.path.join(qxpath, 'tool', 'bin', 'generator.py')
+
+if not os.path.exists(REAL_GENERATOR):
+ print "Cannot find real generator script under: \"%s\"; aborting" % REAL_GENERATOR
+ sys.exit(1)
+
+argList = []
+argList.append(CMD_PYTHON)
+argList.append(REAL_GENERATOR)
+argList.extend(sys.argv[1:])
+if sys.platform == "win32":
+ argList1=[]
+ for arg in argList:
+ if arg.find(' ')>-1:
+ argList1.append('"%s"' % arg)
+ else:
+ argList1.append(arg)
+ argList = argList1
+else:
+ argList = ['"%s"' % x for x in argList] # quote argv elements
+
+cmd = " ".join(argList)
+retval = subprocess.call(cmd, shell=True)
+sys.exit(retval)
View
1  component/standalone/server/readme.txt
@@ -0,0 +1 @@
+Here, the deliverables for the qooxdoo component 'server' are being built.
View
0  component/storage/.gitignore → component/standalone/storage/.gitignore
File renamed without changes
View
0  component/storage/config.json → component/standalone/storage/config.json
File renamed without changes
View
0  component/storage/generate.py → component/standalone/storage/generate.py
File renamed without changes
View
0  component/storage/index.html → component/standalone/storage/index.html
File renamed without changes
View
0  component/storage/require.html → component/standalone/storage/require.html
File renamed without changes
View
7 component/standalone/website/.gitignore
@@ -0,0 +1,7 @@
+# .gitignore template for skeleton-based apps
+/api/
+/build/
+/inspector/
+/simulator/
+/test/
+/source/script/
View
85 component/standalone/website/config.json
@@ -0,0 +1,85 @@
+{
+ "name" : "website",
+
+ "include" :
+ [
+ {
+ "path" : "${QOOXDOO_PATH}/tool/data/config/application.json"
+ }
+ ],
+
+ "export" :
+ [
+ "api",
+ "api-data",
+ "build",
+ "clean",
+ "distclean",
+ "fix",
+ "info",
+ "inspector",
+ "lint",
+ "migration",
+ "pretty",
+ "profiling",
+ "source",
+ "source-all",
+ "source-hybrid",
+ "simulation-build",
+ "simulation-run",
+ "test",
+ "test-source",
+ "translation"
+ ],
+
+ "default-job" : "source-hybrid",
+
+ "let" :
+ {
+ "APPLICATION" : "website",
+ "QOOXDOO_PATH" : "../../..",
+ "QXTHEME" : "website.theme.Theme",
+ "API_EXCLUDE" : ["qx.test.*", "${APPLICATION}.theme.*", "${APPLICATION}.test.*", "${APPLICATION}.simulation.*"],
+ "LOCALES" : [ "en" ],
+ "CACHE" : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache",
+ "ROOT" : "."
+ },
+
+ // You only need to edit the remainder of this file, if you want to customize
+ // specific jobs, or add own job definitions.
+
+ "jobs" :
+ {
+ // Uncomment the following entry to add a contrib or library to your
+ // project; make sure to adapt the path to the Manifest.json; if you are
+ // using a contrib: library, it will be downloaded into the path specified
+ // by the 'cache/downloads' config key
+ /*
+ "libraries" :
+ {
+ "library" :
+ [
+ {
+ "manifest" : "contrib://SkeletonApplication/trunk/Manifest.json"
+ }
+ ]
+ }
+ */
+
+ // If you want to tweak a job setting, see the following sample where
+ // the "format" feature of the "build-script" job is overridden.
+ // To see a list of available jobs, invoke 'generate.py x'.
+ /*
+ ,"build-script" :
+ {
+ "compile-options" :
+ {
+ "code" :
+ {
+ "format" : false
+ }
+ }
+ }
+ */
+ }
+}
View
108 component/standalone/website/generate.py
@@ -0,0 +1,108 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+################################################################################
+#
+# qooxdoo - the new era of web development
+#
+# http://qooxdoo.org
+#
+# Copyright:
+# 2008 - 2012 1&1 Internet AG, Germany, http://www.1und1.de
+#
+# License:
+# LGPL: http://www.gnu.org/licenses/lgpl.html
+# EPL: http://www.eclipse.org/org/documents/epl-v10.php
+# See the LICENSE file in the project's top-level directory for details.
+#
+# Authors:
+# * Thomas Herchenroeder (thron7)
+#
+################################################################################
+
+##
+# This is a stub proxy for the real generator.py
+##
+
+import sys, os, re, subprocess, codecs
+
+CMD_PYTHON = sys.executable
+QOOXDOO_PATH = '../../..'
+
+# this is from misc.json, duplicated for decoupling
+_eolComment = re.compile(r'(?<![a-zA-Z]:)//.*$', re.M) # double $ for string.Template
+_mulComment = re.compile(r'/\*.*?\*/', re.S)
+def stripComments(s):
+ b = _eolComment.sub('',s)
+ b = _mulComment.sub('',b)
+ return b
+
+def getQxPath():
+ path = QOOXDOO_PATH
+ # OS env takes precedence
+ if os.environ.has_key("QOOXDOO_PATH"):
+ path = os.environ["QOOXDOO_PATH"]
+
+ # else use QOOXDOO_PATH from config.json
+ elif os.path.exists('config.json'):
+ # try json parsing with qx json
+ if not path.startswith('${'): # template macro has been resolved
+ sys.path.insert(0, path)
+ try:
+ from misc import json
+ got_json = True
+ except:
+ got_json = False
+
+ got_path = False
+ if got_json:
+ config_str = codecs.open('config.json', "r", "utf-8").read()
+ config_str = stripComments(config_str)
+ config = json.loads(config_str)
+ p = config.get("let")
+ if p:
+ p = p.get("QOOXDOO_PATH")
+ if p:
+ path = p
+ got_path = True
+
+ # regex parsing - error prone
+ if not got_path:
+ qpathr=re.compile(r'"QOOXDOO_PATH"\s*:\s*"([^"]*)"\s*,?')
+ conffile = open('config.json')
+ aconffile = conffile.readlines()
+ for line in aconffile:
+ mo = qpathr.search(line)
+ if mo:
+ path = mo.group(1)
+ break # assume first occurrence is ok
+
+ path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), path))
+
+ return path
+
+os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) # switch to skeleton dir
+qxpath = getQxPath()
+REAL_GENERATOR = os.path.join(qxpath, 'tool', 'bin', 'generator.py')
+
+if not os.path.exists(REAL_GENERATOR):
+ print "Cannot find real generator script under: \"%s\"; aborting" % REAL_GENERATOR
+ sys.exit(1)
+
+argList = []
+argList.append(CMD_PYTHON)
+argList.append(REAL_GENERATOR)
+argList.extend(sys.argv[1:])
+if sys.platform == "win32":
+ argList1=[]
+ for arg in argList:
+ if arg.find(' ')>-1:
+ argList1.append('"%s"' % arg)
+ else:
+ argList1.append(arg)
+ argList = argList1
+else:
+ argList = ['"%s"' % x for x in argList] # quote argv elements
+
+cmd = " ".join(argList)
+retval = subprocess.call(cmd, shell=True)
+sys.exit(retval)
View
1  component/standalone/website/readme.txt
@@ -0,0 +1 @@
+Here, the deliverables for the qooxdoo component 'website' are being built.
Please sign in to comment.
Something went wrong with that request. Please try again.