summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.classpath19
-rw-r--r--.project23
-rw-r--r--.settings/org.eclipse.core.resources.prefs2
-rw-r--r--Components/Main.api5
-rw-r--r--Components/Main.wo/Main.html9
-rw-r--r--Components/Main.wo/Main.wod0
-rw-r--r--Components/Main.wo/Main.woo4
-rw-r--r--Resources/Properties68
-rw-r--r--Sources/com/ashardalon/pagic/Application.java24
-rw-r--r--Sources/com/ashardalon/pagic/DirectAction.java19
-rw-r--r--Sources/com/ashardalon/pagic/Session.java10
-rw-r--r--Sources/com/ashardalon/pagic/components/Main.java11
-rw-r--r--Sources/com/ashardalon/pagic/rest/controllers/BaseRestController.java43
-rw-r--r--Sources/com/ashardalon/pagic/rest/controllers/PagesController.java28
-rw-r--r--build.xml223
-rw-r--r--build/.version1
-rw-r--r--build/Pagic.woa/Contents/Info.plist37
-rw-r--r--build/Pagic.woa/Contents/Resources/Main.api5
-rw-r--r--build/Pagic.woa/Contents/Resources/Main.wo/Main.html9
-rw-r--r--build/Pagic.woa/Contents/Resources/Main.wo/Main.wod0
-rw-r--r--build/Pagic.woa/Contents/Resources/Main.wo/Main.woo4
-rw-r--r--build/Pagic.woa/Contents/Resources/Properties68
-rw-r--r--woproject/classes.exclude.patternset1
-rw-r--r--woproject/classes.include.patternset2
-rw-r--r--woproject/resources.exclude.patternset3
-rw-r--r--woproject/resources.include.patternset3
-rw-r--r--woproject/wsresources.exclude.patternset3
-rw-r--r--woproject/wsresources.include.patternset1
28 files changed, 625 insertions, 0 deletions
diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..4e4b2d8
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="Sources"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/ERRest"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/ERExtensions"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/ERJars"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/ERPrototypes"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/ERAttributeExtension"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/JavaWOExtensions"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/WOOgnl"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/JavaEOAccess"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/JavaEOControl"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/JavaFoundation"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/JavaJDBCAdaptor"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/JavaWebObjects"/>
+ <classpathentry combineaccessrules="false" kind="con" path="WOFramework/JavaXML"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/.project b/.project
new file mode 100644
index 0000000..13dbb6e
--- /dev/null
+++ b/.project
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Pagic</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.objectstyle.wolips.incrementalbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.objectstyle.wolips.incrementalapplicationnature</nature>
+ </natures>
+</projectDescription>
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..99f26c0
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/Components/Main.api b/Components/Main.api
new file mode 100644
index 0000000..12535ad
--- /dev/null
+++ b/Components/Main.api
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<wodefinitions>
+ <wo wocomponentcontent="false" class="Main.java">
+ </wo>
+</wodefinitions>
diff --git a/Components/Main.wo/Main.html b/Components/Main.wo/Main.html
new file mode 100644
index 0000000..7f43a90
--- /dev/null
+++ b/Components/Main.wo/Main.html
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<html>
+ <head>
+ <title>Untitled</title>
+ </head>
+ <body>
+Hello World
+ </body>
+</html>
diff --git a/Components/Main.wo/Main.wod b/Components/Main.wo/Main.wod
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Components/Main.wo/Main.wod
diff --git a/Components/Main.wo/Main.woo b/Components/Main.wo/Main.woo
new file mode 100644
index 0000000..1f6e847
--- /dev/null
+++ b/Components/Main.wo/Main.woo
@@ -0,0 +1,4 @@
+{
+ "WebObjects Release" = "WebObjects 5.0";
+ encoding = "UTF-8";
+} \ No newline at end of file
diff --git a/Resources/Properties b/Resources/Properties
new file mode 100644
index 0000000..7fac881
--- /dev/null
+++ b/Resources/Properties
@@ -0,0 +1,68 @@
+# OGNL
+ognl.helperFunctions=true
+ognl.inlineBindings=true
+
+# Misc
+er.extensions.stackTrace.cleanup=true
+
+# EOF
+er.extensions.ERXEC.safeLocking=true
+er.extensions.ERXEC.useSharedEditingContext=false
+er.extensions.ERXEnterpriseObject.applyRestrictingQualifierOnInsert=true
+er.extensions.ERXEnterpriseObject.updateInverseRelationships=true
+#dbConnectURLGLOBAL=
+#dbConnectUserGLOBAL=
+#dbConnectPasswordGLOBAL=
+
+# Migrations
+#er.migration.migrateAtStartup=true
+#er.migration.createTablesIfNecessary=true
+#er.migration.modelNames=YourModel
+
+# Misc Components
+#er.extensions.ERXWOForm.multipleSubmitDefault=true
+#er.extensions.ERXWORepetition.checkHashCodes=true
+#er.extensions.ERXWORepetition.raiseOnUnmatchedObject=true
+#er.extensions.ERXWORepetition.eoSupport=true
+#er.component.clickToOpen=true
+#wolips.password=wo
+
+# ERJavaMail
+er.javamail.centralize=true
+er.javamail.adminEmail=admin@yourhost.com
+er.javamail.debugEnabled=false
+er.javamail.smtpHost=your.smtpserver.com
+er.javamail.smtpAuth=false
+er.javamail.smtpUser=
+er.javamail.smtpPassword=
+
+# Log4j Configuration
+log4j.loggerFactory=er.extensions.logging.ERXLogger$Factory
+log4j.rootCategory=INFO,A1
+log4j.appender.A1=er.extensions.logging.ERXConsoleAppender
+log4j.appender.A1.layout=er.extensions.logging.ERXPatternLayout
+log4j.appender.A1.layout.ConversionPattern=%d{MMM dd HH:mm:ss} %$[%#] %-5p %c %x - %m%n
+
+# Log4j Categories
+# Here are a few log4j sub-categories that are interesting.
+# Don't forget that in developement mode this file will get reloaded
+# everytime it changes, so if you say want to turn adaptor debugging
+# on in the middle of the app simply set the below category to debug.
+# Very handy.
+# Base Category
+log4j.logger.er=INFO
+
+# ERExtensions
+# Transaction - Switching this to debug will start the sql ouputting.
+log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG
+
+# Fixes - Turning this on will show all the models that are loaded
+log4j.logger.er.extensions.fixes.ERSharedEOLoader=INFO
+
+er.extensions.ERXNSLogLog4jBridge=INFO
+#log4j.logger.er.eo.ERXGenericRecord=DEBUG
+#log4j.logger.er.validation.ERXEntityClassDescription=DEBUG
+#log4j.logger.er.default.ERXEntityClassDescription=DEBUG
+log4j.logger.er.extensions.ERXDatabaseContextDelegate=WARN
+log4j.logger.er.extensions.ERXConfigurationManager=INFO
+#log4j.logger.er.extensions.ERXApplication.RequestHandling=DEBUG
diff --git a/Sources/com/ashardalon/pagic/Application.java b/Sources/com/ashardalon/pagic/Application.java
new file mode 100644
index 0000000..374d2dd
--- /dev/null
+++ b/Sources/com/ashardalon/pagic/Application.java
@@ -0,0 +1,24 @@
+package com.ashardalon.pagic;
+
+import er.extensions.appserver.ERXApplication;
+import er.rest.routes.ERXRoute;
+import er.rest.routes.ERXRouteRequestHandler;
+import com.ashardalon.pagic.components.Main;
+import com.ashardalon.pagic.rest.controllers.PagesController;
+
+public class Application extends ERXApplication {
+ public static void main(String[] argv) {
+ ERXApplication.main(argv, Application.class);
+ }
+
+ public Application() {
+ ERXApplication.log.info("Welcome to " + name() + " !");
+ /* ** put your initialization code in here ** */
+ setAllowsConcurrentRequestHandling(true);
+
+ ERXRouteRequestHandler restRequestHandler = new ERXRouteRequestHandler();
+ restRequestHandler.insertRoute(new ERXRoute("Pages", "", ERXRoute.Method.Get, PagesController.class, "mainPage"));
+ ERXRouteRequestHandler.register(restRequestHandler);
+ setDefaultRequestHandler(restRequestHandler);
+ }
+} \ No newline at end of file
diff --git a/Sources/com/ashardalon/pagic/DirectAction.java b/Sources/com/ashardalon/pagic/DirectAction.java
new file mode 100644
index 0000000..616afcb
--- /dev/null
+++ b/Sources/com/ashardalon/pagic/DirectAction.java
@@ -0,0 +1,19 @@
+package com.ashardalon.pagic;
+
+import com.webobjects.appserver.WOActionResults;
+import com.webobjects.appserver.WORequest;
+
+import er.extensions.appserver.ERXDirectAction;
+
+import com.ashardalon.pagic.components.Main;
+
+public class DirectAction extends ERXDirectAction {
+ public DirectAction(WORequest request) {
+ super(request);
+ }
+
+ @Override
+ public WOActionResults defaultAction() {
+ return pageWithName(Main.class.getName());
+ }
+}
diff --git a/Sources/com/ashardalon/pagic/Session.java b/Sources/com/ashardalon/pagic/Session.java
new file mode 100644
index 0000000..c4ebc04
--- /dev/null
+++ b/Sources/com/ashardalon/pagic/Session.java
@@ -0,0 +1,10 @@
+package com.ashardalon.pagic;
+
+import er.extensions.appserver.ERXSession;
+
+public class Session extends ERXSession {
+ private static final long serialVersionUID = 1L;
+
+ public Session() {
+ }
+}
diff --git a/Sources/com/ashardalon/pagic/components/Main.java b/Sources/com/ashardalon/pagic/components/Main.java
new file mode 100644
index 0000000..f64be1d
--- /dev/null
+++ b/Sources/com/ashardalon/pagic/components/Main.java
@@ -0,0 +1,11 @@
+package com.ashardalon.pagic.components;
+
+import com.webobjects.appserver.WOContext;
+
+import er.extensions.components.ERXComponent;
+
+public class Main extends ERXComponent {
+ public Main(WOContext context) {
+ super(context);
+ }
+}
diff --git a/Sources/com/ashardalon/pagic/rest/controllers/BaseRestController.java b/Sources/com/ashardalon/pagic/rest/controllers/BaseRestController.java
new file mode 100644
index 0000000..a69d784
--- /dev/null
+++ b/Sources/com/ashardalon/pagic/rest/controllers/BaseRestController.java
@@ -0,0 +1,43 @@
+package com.ashardalon.pagic.rest.controllers;
+
+import com.webobjects.appserver.WOActionResults;
+import com.webobjects.appserver.WORequest;
+
+import er.extensions.appserver.ERXHttpStatusCodes;
+import er.rest.routes.ERXDefaultRouteController;
+
+public class BaseRestController extends ERXDefaultRouteController {
+
+ public BaseRestController(WORequest request) {
+ super(request);
+ }
+
+ public WOActionResults updateAction() throws Throwable {
+ return errorResponse(ERXHttpStatusCodes.METHOD_NOT_ALLOWED);
+ }
+
+ public WOActionResults createAction() throws Throwable {
+ return errorResponse(ERXHttpStatusCodes.METHOD_NOT_ALLOWED);
+ }
+
+ @Override
+ public WOActionResults newAction() throws Throwable {
+ return errorResponse(ERXHttpStatusCodes.METHOD_NOT_ALLOWED);
+ }
+
+ @Override
+ public WOActionResults destroyAction() throws Throwable {
+ return errorResponse(ERXHttpStatusCodes.METHOD_NOT_ALLOWED);
+ }
+
+ @Override
+ public WOActionResults showAction() throws Throwable {
+ return errorResponse(ERXHttpStatusCodes.METHOD_NOT_ALLOWED);
+ }
+
+ @Override
+ public WOActionResults indexAction() throws Throwable {
+ return errorResponse(ERXHttpStatusCodes.METHOD_NOT_ALLOWED);
+ }
+
+}
diff --git a/Sources/com/ashardalon/pagic/rest/controllers/PagesController.java b/Sources/com/ashardalon/pagic/rest/controllers/PagesController.java
new file mode 100644
index 0000000..29ccc5f
--- /dev/null
+++ b/Sources/com/ashardalon/pagic/rest/controllers/PagesController.java
@@ -0,0 +1,28 @@
+package com.ashardalon.pagic.rest.controllers;
+
+import com.ashardalon.pagic.components.Main;
+
+import com.webobjects.appserver.WOActionResults;
+import com.webobjects.appserver.WORequest;
+
+import er.rest.format.ERXRestFormat;
+
+/**
+ * This controller is for content that is not EO entities driven, e.g. "static pages"
+*/
+public class PagesController extends BaseRestController {
+
+ public PagesController(WORequest request) {
+ super(request);
+ }
+
+ public WOActionResults mainPageAction() {
+ return pageWithName(Main.class);
+ }
+
+ @Override
+ protected ERXRestFormat defaultFormat() {
+ return ERXRestFormat.html();
+ }
+
+}
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..c6bc97a
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,223 @@
+<project name="Pagic" default="build" basedir=".">
+ <target name="build" depends="init.build,build.woapp,javaclient,ssdd,war,split,package" />
+
+ <target name="install" depends="init.install,build.woapp,javaclient,ssdd,war,split,package" />
+
+ <target name="clean" depends="init.properties">
+ <delete dir="bin" />
+ <delete dir="dist" />
+ </target>
+
+ <!-- basic initializations -->
+ <target name="init.install" depends="init.properties">
+ <tstamp />
+ <property name="dest.dir" value="${wo.apps.root}" />
+ </target>
+
+ <target name="init.build" depends="init.properties">
+ <tstamp />
+ <property name="dest.dir" value="dist" />
+ </target>
+
+ <!-- property determination -->
+ <target name="init.properties">
+ <property file="build.properties" />
+
+ <property name="wolips.properties" value="${user.home}${file.separator}Library${file.separator}Application Support${file.separator}WOLips${file.separator}wolips.properties" />
+ <property file="${wolips.properties}" />
+ <condition property="wo.properties.check.failed">
+ <not>
+ <and>
+ <isset property="wo.system.frameworks" />
+ <isset property="wo.local.frameworks" />
+ </and>
+ </not>
+ </condition>
+ <fail message="The properties 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that your ${wolips.properties} is correct." if="wo.properties.check.failed" />
+
+ <property name="build.app.name" value="${project.name}" />
+ <property name="build.app.name.lowercase" value="${project.name.lowercase}" />
+ </target>
+
+ <!-- This copies webserver resources from app.woa's embedded frameworks into split install bundle -->
+ <target name="split" description="Adds embedded framework webserver resources to the split install bundle by copying from deployment build bundle" unless="servletDeployment">
+ <property name="wsdest.dir" value="${dest.dir}/Split" />
+ <mkdir dir="${wsdest.dir}"/>
+ <copy todir="${wsdest.dir}/WebObjects/${build.app.name}.woa" verbose="true">
+ <fileset dir="${dest.dir}/${build.app.name}.woa/Contents">
+ <include name="Frameworks/*.framework/WebServerResources/**"/>
+ </fileset>
+ <fileset dir="${dest.dir}/${build.app.name}.woa">
+ <include name="Contents/WebServerResources/**"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="package" unless="servletDeployment">
+ <tar destfile="${dest.dir}/${build.app.name}-Application.tar.gz"
+ compression="gzip"
+ longfile="gnu">
+ <tarfileset dir="${dest.dir}" mode="750">
+ <include name="${build.app.name}.woa/${build.app.name}"/>
+ </tarfileset>
+ <tarfileset dir="${dest.dir}">
+ <exclude name="${build.app.name}.woa/${build.app.name}"/>
+ <include name="${build.app.name}.woa/**"/>
+ </tarfileset>
+ </tar>
+ <tar destfile="${dest.dir}/${build.app.name}-WebServerResources.tar.gz"
+ compression="gzip"
+ basedir="${wsdest.dir}/WebObjects"
+ longfile="gnu"
+ includes="${build.app.name}.woa/**">
+ </tar>
+ </target>
+
+ <!-- woproject tasks -->
+ <target name="build.woapp" depends="compile">
+ <taskdef name="woapplication" classname="org.objectstyle.woproject.ant.WOApplication"/>
+
+ <woapplication name="${build.app.name}" frameworksBaseURL="/WebObjects/${build.app.name}.woa/Frameworks" destDir="${dest.dir}" customInfoPListContent="${customInfoPListContent}" principalClass="${principalClass}" webXML="${webXML}" webXML_CustomContent="${webXML_CustomContent}" servletAdaptor="er.extensions.jspservlet.ERXServletAdaptor">
+ <classes dir="${classes.dir}">
+ <includesfile name="woproject/classes.include.patternset" />
+ <excludesfile name="woproject/classes.exclude.patternset" />
+ <exclude if="javaClient" name="**/client/**/*.*"/>
+ </classes>
+
+ <wsresources dir=".">
+ <includesfile name="woproject/wsresources.include.patternset" />
+ <excludesfile name="woproject/wsresources.exclude.patternset" />
+ </wsresources>
+
+ <resources dir=".">
+ <includesfile name="woproject/resources.include.patternset" />
+ <excludesfile name="woproject/resources.exclude.patternset" />
+ <exclude if="javaClient" name="**/client/**/*.*"/>
+ </resources>
+
+ <frameworks root="ProjectLocal" embed="${embed.ProjectLocal}" eclipse="true" />
+ <frameworks root="External" embed="${embed.External}" eclipse="true" />
+ <frameworks root="Local" embed="${embed.Local}" eclipse="true" />
+ <frameworks root="User" embed="${embed.User}" eclipse="true" />
+ <frameworks root="System" embed="${embed.System}" eclipse="true" />
+ <frameworks root="Network" embed="${embed.Network}" eclipse="true" />
+
+ <lib dir="Libraries">
+ <include name="*.jar" />
+ </lib>
+ </woapplication>
+ </target>
+
+ <target name="javaclient" if="javaClient" depends="build.woapp">
+ <mkdir dir="${dest.dir}/${build.app.name}.woa/Contents/WebServerResources/Java" />
+ <jar basedir="${classes.dir}" excludes="**/server/**/*.*, **/server/**/" jarfile="${dest.dir}/${build.app.name}.woa/Contents/WebServerResources/Java/${build.app.name}.jar"/>
+ </target>
+
+ <target name="war" if="servletDeployment" depends="ssdd">
+ <war destfile="${dest.dir}/${build.app.name}.war" webxml="${dest.dir}/${build.app.name}/WEB-INF/web.xml">
+ <fileset dir="${dest.dir}/${build.app.name}">
+ <include name="**" />
+ </fileset>
+ </war>
+ </target>
+
+ <!-- To use this target
+ 1) create the LICENSE in your project directory
+ 2) add JavaWOJSPServlet in your WOFrameworks build path
+ 3) set servlet deployment to true in WOLips Properties
+ -->
+ <target name="ssdd" if="servletDeployment" depends="build.woapp">
+ <mkdir dir="${dest.dir}/${build.app.name}/WEB-INF/classes" />
+ <mkdir dir="${dest.dir}/${build.app.name}/WEB-INF/tlds" />
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/">
+ <fileset dir="${dest.dir}/${build.app.name}.woa/Contents/">
+ <include name="web.xml" />
+ </fileset>
+ </copy>
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/">
+ <fileset dir="..">
+ <include name="LICENSE" />
+ </fileset>
+ </copy>
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/">
+ <fileset dir="${dest.dir}">
+ <include name="${build.app.name}.woa/**" />
+ </fileset>
+ </copy>
+ <!-- copy the frameworks to the WEBINFROOT/Library directory -->
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/">
+ <fileset dir="${dest.dir}/${build.app.name}.woa/Contents">
+ <include name="Library/**" />
+ </fileset>
+ </copy>
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/">
+ <fileset dir="${dest.dir}/${build.app.name}.woa">
+ <include name="Resources/**" />
+ </fileset>
+ </copy>
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/lib/">
+ <fileset dir="${dest.dir}/${build.app.name}/WEB-INF">
+ <include name="**/Resources/**/*.jar" />
+ </fileset>
+ <mapper type="flatten" />
+ </copy>
+
+ <!-- Get the necessary Frameworks from the webobjects system root instead of the project wrapper -->
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/lib" file="${wo.system.frameworks}/JavaWOJSPServlet.framework/WebServerResources/Java/JavaWOJSPServlet_client.jar" />
+
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/tlds">
+ <fileset dir="${wo.system.frameworks}/JavaWOJSPServlet.framework/Resources/">
+ <include name="WOtaglib_1_0.tld" />
+ </fileset>
+ </copy>
+
+ <!-- the WebObject Extensions -->
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/lib">
+ <fileset dir="${wo.extensions}">
+ <include name="*.jar" />
+ <exclude name="servlet.jar" />
+ </fileset>
+ <mapper type="flatten" />
+ </copy>
+
+ <!-- the Java Client Client-Side Classes -->
+ <copy todir="${dest.dir}/${build.app.name}/WEB-INF/${build.app.name}.woa/Contents/WebServerResources/Java">
+ <fileset dir="${wo.local.frameworks}">
+ <include name="**/WebServerResources/Java/*.jar"/>
+ </fileset>
+ <mapper type="flatten"/>
+ </copy>
+
+ <!-- fix the Macos*ClassPath.txt files -->
+ <replaceregexp file="${dest.dir}/${build.app.name}/WEB-INF/${build.app.name}.woa/Contents/MacOS/MacOSClassPath.txt" match="APPROOT/Resources/Java/${build.app.name.lowercase}.jar" replace="APPROOT/${build.app.name}.woa/Contents/Resources/Java/${build.app.name.lowercase}.jar" byline="true" />
+ <replaceregexp file="${dest.dir}/${build.app.name}/WEB-INF/${build.app.name}.woa/Contents/MacOS/MacOSXServerClassPath.txt" match="APPROOT/Resources/Java/${build.app.name.lowercase}.jar" replace="APPROOT/${build.app.name}.woa/Contents/Resources/Java/${build.app.name.lowercase}.jar" byline="true" />
+
+ <!-- fix the web.xml file: the app itself needs build.app.name/Contents -->
+ <replaceregexp file="${dest.dir}/${build.app.name}/WEB-INF/web.xml" match="WEBINFROOT/Resources/Java/${build.app.name.lowercase}.jar" replace="WEBINFROOT/${build.app.name}.woa/Contents/Resources/Java/${build.app.name.lowercase}.jar" byline="true" />
+
+ <!-- fix the web.xml file to remove the extra Frameworks/ directory level for the frameworks -->
+ <replaceregexp file="${dest.dir}/${build.app.name}/WEB-INF/web.xml" match="WEBINFROOT/Frameworks//" replace="WEBINFROOT/" byline="true" />
+ </target>
+
+ <target name="compile" depends="init.properties">
+ <taskdef name="wocompile" classname="org.objectstyle.woproject.ant.WOCompile" />
+
+ <mkdir dir="bin" />
+ <wocompile srcdir="Sources" destdir="bin">
+ <frameworks root="ProjectLocal" embed="false" eclipse="true" />
+ <frameworks root="External" embed="false" eclipse="true" />
+ <frameworks root="Local" embed="false" eclipse="true" />
+ <frameworks root="User" embed="false" eclipse="true" />
+ <frameworks root="System" embed="false" eclipse="true" />
+ <frameworks root="Network" embed="false" eclipse="true" />
+ <classpath>
+ <fileset dir="Libraries">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${wo.extensions}">
+ <include name="*.jar" />
+ </fileset>
+ </classpath>
+ </wocompile>
+ </target>
+</project>
diff --git a/build/.version b/build/.version
new file mode 100644
index 0000000..a8a927b
--- /dev/null
+++ b/build/.version
@@ -0,0 +1 @@
+1705539646371 \ No newline at end of file
diff --git a/build/Pagic.woa/Contents/Info.plist b/build/Pagic.woa/Contents/Info.plist
new file mode 100644
index 0000000..d3e8801
--- /dev/null
+++ b/build/Pagic.woa/Contents/Info.plist
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plist version="0.9">
+<dict>
+ <key>NOTE</key>
+ <string>autogenerated</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>Pagic</string>
+ <key>CFBundleIconFile</key>
+ <string>WOAfile.icns</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>webo</string>
+ <key>CFBundleShortVersionString</key>
+ <string>0.0</string>
+ <key>CFBundleVersion</key>
+ <string></string>
+ <key>NSExecutable</key>
+ <string>Pagic</string>
+ <key>NSJavaNeeded</key>
+ <true/>
+ <key>NSJavaPath</key>
+ <array>
+ <string>Pagic.jar</string>
+ </array>
+ <key>NSJavaPathClient</key>
+ <string>$basename.jar</string>
+ <key>NSJavaRoot</key>
+ <string>Contents/Resources/Java</string>
+ <key>NSJavaRootClient</key>
+ <string>Contents/WebServerResources/Java</string>
+</dict>
+</plist> \ No newline at end of file
diff --git a/build/Pagic.woa/Contents/Resources/Main.api b/build/Pagic.woa/Contents/Resources/Main.api
new file mode 100644
index 0000000..12535ad
--- /dev/null
+++ b/build/Pagic.woa/Contents/Resources/Main.api
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<wodefinitions>
+ <wo wocomponentcontent="false" class="Main.java">
+ </wo>
+</wodefinitions>
diff --git a/build/Pagic.woa/Contents/Resources/Main.wo/Main.html b/build/Pagic.woa/Contents/Resources/Main.wo/Main.html
new file mode 100644
index 0000000..7f43a90
--- /dev/null
+++ b/build/Pagic.woa/Contents/Resources/Main.wo/Main.html
@@ -0,0 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<html>
+ <head>
+ <title>Untitled</title>
+ </head>
+ <body>
+Hello World
+ </body>
+</html>
diff --git a/build/Pagic.woa/Contents/Resources/Main.wo/Main.wod b/build/Pagic.woa/Contents/Resources/Main.wo/Main.wod
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build/Pagic.woa/Contents/Resources/Main.wo/Main.wod
diff --git a/build/Pagic.woa/Contents/Resources/Main.wo/Main.woo b/build/Pagic.woa/Contents/Resources/Main.wo/Main.woo
new file mode 100644
index 0000000..1f6e847
--- /dev/null
+++ b/build/Pagic.woa/Contents/Resources/Main.wo/Main.woo
@@ -0,0 +1,4 @@
+{
+ "WebObjects Release" = "WebObjects 5.0";
+ encoding = "UTF-8";
+} \ No newline at end of file
diff --git a/build/Pagic.woa/Contents/Resources/Properties b/build/Pagic.woa/Contents/Resources/Properties
new file mode 100644
index 0000000..7fac881
--- /dev/null
+++ b/build/Pagic.woa/Contents/Resources/Properties
@@ -0,0 +1,68 @@
+# OGNL
+ognl.helperFunctions=true
+ognl.inlineBindings=true
+
+# Misc
+er.extensions.stackTrace.cleanup=true
+
+# EOF
+er.extensions.ERXEC.safeLocking=true
+er.extensions.ERXEC.useSharedEditingContext=false
+er.extensions.ERXEnterpriseObject.applyRestrictingQualifierOnInsert=true
+er.extensions.ERXEnterpriseObject.updateInverseRelationships=true
+#dbConnectURLGLOBAL=
+#dbConnectUserGLOBAL=
+#dbConnectPasswordGLOBAL=
+
+# Migrations
+#er.migration.migrateAtStartup=true
+#er.migration.createTablesIfNecessary=true
+#er.migration.modelNames=YourModel
+
+# Misc Components
+#er.extensions.ERXWOForm.multipleSubmitDefault=true
+#er.extensions.ERXWORepetition.checkHashCodes=true
+#er.extensions.ERXWORepetition.raiseOnUnmatchedObject=true
+#er.extensions.ERXWORepetition.eoSupport=true
+#er.component.clickToOpen=true
+#wolips.password=wo
+
+# ERJavaMail
+er.javamail.centralize=true
+er.javamail.adminEmail=admin@yourhost.com
+er.javamail.debugEnabled=false
+er.javamail.smtpHost=your.smtpserver.com
+er.javamail.smtpAuth=false
+er.javamail.smtpUser=
+er.javamail.smtpPassword=
+
+# Log4j Configuration
+log4j.loggerFactory=er.extensions.logging.ERXLogger$Factory
+log4j.rootCategory=INFO,A1
+log4j.appender.A1=er.extensions.logging.ERXConsoleAppender
+log4j.appender.A1.layout=er.extensions.logging.ERXPatternLayout
+log4j.appender.A1.layout.ConversionPattern=%d{MMM dd HH:mm:ss} %$[%#] %-5p %c %x - %m%n
+
+# Log4j Categories
+# Here are a few log4j sub-categories that are interesting.
+# Don't forget that in developement mode this file will get reloaded
+# everytime it changes, so if you say want to turn adaptor debugging
+# on in the middle of the app simply set the below category to debug.
+# Very handy.
+# Base Category
+log4j.logger.er=INFO
+
+# ERExtensions
+# Transaction - Switching this to debug will start the sql ouputting.
+log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG
+
+# Fixes - Turning this on will show all the models that are loaded
+log4j.logger.er.extensions.fixes.ERSharedEOLoader=INFO
+
+er.extensions.ERXNSLogLog4jBridge=INFO
+#log4j.logger.er.eo.ERXGenericRecord=DEBUG
+#log4j.logger.er.validation.ERXEntityClassDescription=DEBUG
+#log4j.logger.er.default.ERXEntityClassDescription=DEBUG
+log4j.logger.er.extensions.ERXDatabaseContextDelegate=WARN
+log4j.logger.er.extensions.ERXConfigurationManager=INFO
+#log4j.logger.er.extensions.ERXApplication.RequestHandling=DEBUG
diff --git a/woproject/classes.exclude.patternset b/woproject/classes.exclude.patternset
new file mode 100644
index 0000000..56fb545
--- /dev/null
+++ b/woproject/classes.exclude.patternset
@@ -0,0 +1 @@
+build.properties
diff --git a/woproject/classes.include.patternset b/woproject/classes.include.patternset
new file mode 100644
index 0000000..3179091
--- /dev/null
+++ b/woproject/classes.include.patternset
@@ -0,0 +1,2 @@
+**/*.class
+*.properties
diff --git a/woproject/resources.exclude.patternset b/woproject/resources.exclude.patternset
new file mode 100644
index 0000000..905050d
--- /dev/null
+++ b/woproject/resources.exclude.patternset
@@ -0,0 +1,3 @@
+**/*.eomodeld~/
+**/*.woa/**
+**/*.framework/**
diff --git a/woproject/resources.include.patternset b/woproject/resources.include.patternset
new file mode 100644
index 0000000..6119787
--- /dev/null
+++ b/woproject/resources.include.patternset
@@ -0,0 +1,3 @@
+Components/**/*.wo/**/*
+Components/**/*.api
+Resources/**/* \ No newline at end of file
diff --git a/woproject/wsresources.exclude.patternset b/woproject/wsresources.exclude.patternset
new file mode 100644
index 0000000..9435a51
--- /dev/null
+++ b/woproject/wsresources.exclude.patternset
@@ -0,0 +1,3 @@
+**/*.woa/**
+**/*.framework/**
+**/*.eomodeld~/**
diff --git a/woproject/wsresources.include.patternset b/woproject/wsresources.include.patternset
new file mode 100644
index 0000000..234cdc8
--- /dev/null
+++ b/woproject/wsresources.include.patternset
@@ -0,0 +1 @@
+WebServerResources/**/*