You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2008/05/27 00:21:57 UTC
svn commit: r660326 [16/17] - in /harmony/enhanced/microemulator: ./
microemu-android/ microemu-android/src/ microemu-android/src/org/
microemu-android/src/org/microemu/ microemu-android/src/org/microemu/android/
microemu-android/src/org/microemu/andro...
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/RecordStoreForm.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/RecordStoreForm.java?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/RecordStoreForm.java (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/RecordStoreForm.java Mon May 26 15:20:19 2008
@@ -0,0 +1,196 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.microemu.tests;
+
+import javax.microedition.lcdui.Command;
+import javax.microedition.lcdui.CommandListener;
+import javax.microedition.lcdui.Displayable;
+import javax.microedition.lcdui.List;
+import javax.microedition.lcdui.StringItem;
+import javax.microedition.lcdui.TextField;
+import javax.microedition.rms.RecordStore;
+import javax.microedition.rms.RecordStoreException;
+
+public class RecordStoreForm extends BaseTestsForm {
+
+ static final Command loadCommand = new Command("Load", Command.ITEM, 1);
+
+ static final Command storeCommand = new Command("Store", Command.ITEM, 2);
+
+ static final Command deleteCommand = new Command("Delete", Command.ITEM, 3);
+
+ static final Command listCommand = new Command("List", Command.ITEM, 4);
+
+ static final String recordStoreName = "meTestRecordStore";
+
+ TextField textFiled;
+
+ StringItem stringItem;
+
+ StringItem messageItem;
+
+ int savedRecordId = -1;
+
+ public RecordStoreForm() {
+ super("RecordStore");
+ addCommand(loadCommand);
+ addCommand(storeCommand);
+ addCommand(deleteCommand);
+ addCommand(listCommand);
+
+ textFiled = new TextField("Enter data", "", 128, TextField.ANY);
+ append(textFiled);
+
+ stringItem = new StringItem("Loaded data", "n/a");
+ append(stringItem);
+
+ messageItem = new StringItem("Info:", "Use menu to load and store data");
+ append(messageItem);
+ }
+
+ private void load() {
+ RecordStore recordStore = null;
+ try {
+ recordStore = RecordStore.openRecordStore(recordStoreName, false);
+ String message;
+ if (recordStore.getNumRecords() > 0) {
+ int recordId = 1;
+ System.out.println("getRecord " + recordId);
+ byte[] data = recordStore.getRecord(recordId);
+ message = recordId + " loaded";
+ stringItem.setText(new String(data));
+
+ if (savedRecordId != recordId) {
+ messageItem.setText("recordId " + recordId + " is different " + savedRecordId);
+ }
+
+ } else {
+ message = "recordStore empty";
+ stringItem.setText("");
+ }
+ messageItem.setText(message);
+ } catch (Throwable e) {
+ System.out.println("error accessing RecordStore");
+ e.printStackTrace();
+ messageItem.setText(e.toString());
+ } finally {
+ closeQuietly(recordStore);
+ }
+ }
+
+ private void store() {
+ RecordStore recordStore = null;
+ try {
+ recordStore = RecordStore.openRecordStore(recordStoreName, true);
+ StringBuffer buf = new StringBuffer();
+ buf.append("[").append(textFiled.getString()).append("]");
+ byte[] data = buf.toString().getBytes();
+ int recordId;
+ String message;
+ if (recordStore.getNumRecords() > 0) {
+ recordId = 1;
+ System.out.println("setRecord " + recordId);
+ recordStore.setRecord(recordId, data, 0, data.length);
+ message = recordId + " updated";
+ } else {
+ recordId = recordStore.addRecord(data, 0, data.length);
+ message = recordId + " created";
+ }
+ savedRecordId = recordId;
+ messageItem.setText(message);
+ } catch (Throwable e) {
+ System.out.println("error accessing RecordStore");
+ e.printStackTrace();
+ messageItem.setText(e.toString());
+ } finally {
+ closeQuietly(recordStore);
+ }
+ }
+
+ private void delete() {
+ try {
+ RecordStore.deleteRecordStore(recordStoreName);
+ messageItem.setText("removed " + recordStoreName);
+ } catch (Throwable e) {
+ System.out.println("error accessing RecordStore");
+ e.printStackTrace();
+ messageItem.setText(e.toString());
+ }
+ }
+
+ public class RecordStoreList extends List implements CommandListener {
+
+ public RecordStoreList() {
+ super("names of record stores", List.IMPLICIT);
+ this.setCommandListener(this);
+ addCommand(DisplayableUnderTests.backCommand);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.microedition.lcdui.CommandListener#commandAction(javax.microedition.lcdui.Command, javax.microedition.lcdui.Displayable)
+ */
+ public void commandAction(Command c, Displayable d) {
+ if (c == DisplayableUnderTests.backCommand) {
+ Manager.midletInstance.setCurrentDisplayable(RecordStoreForm.this);
+ }
+ }
+ }
+
+ private void list() {
+ try {
+ String[] items = RecordStore.listRecordStores();
+ messageItem.setText("listed " + items.length);
+ List list = new RecordStoreList();
+ for (int i = 0; i < items.length; i++) {
+ list.append(items[i], null);
+ }
+ Manager.midletInstance.setCurrentDisplayable(list);
+ } catch (Throwable e) {
+ System.out.println("error accessing RecordStore");
+ e.printStackTrace();
+ messageItem.setText(e.toString());
+ }
+ }
+
+ public void commandAction(Command c, Displayable d) {
+ if (d == this) {
+ if (c == loadCommand) {
+ load();
+ } else if (c == storeCommand) {
+ store();
+ } else if (c == deleteCommand) {
+ delete();
+ } else if (c == listCommand) {
+ list();
+ }
+ }
+ super.commandAction(c, d);
+ }
+
+ public static void closeQuietly(RecordStore recordStore) {
+ try {
+ if (recordStore != null) {
+ recordStore.closeRecordStore();
+ }
+ } catch (RecordStoreException ignore) {
+ // ignore
+ }
+ }
+}
Propchange: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/RecordStoreForm.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/ThreadTestsForm.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/ThreadTestsForm.java?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/ThreadTestsForm.java (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/ThreadTestsForm.java Mon May 26 15:20:19 2008
@@ -0,0 +1,90 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.microemu.tests;
+
+import java.util.Timer;
+import java.util.TimerTask;
+
+import javax.microedition.lcdui.Command;
+import javax.microedition.lcdui.Displayable;
+
+/**
+ * @author vlads
+ *
+ */
+public class ThreadTestsForm extends BaseTestsForm {
+
+ static final Command startThreadCommand = new Command("start Thread", Command.ITEM, 1);
+
+ static final Command stopThreadCommand = new Command("stop Thread", Command.ITEM, 2);
+
+ static final Command startTimerCommand = new Command("start Timer", Command.ITEM, 3);
+
+ static final Command stopTimerCommand = new Command("stop Timer", Command.ITEM, 4);
+
+ private static boolean testTimeronInit = true;
+
+ private Thread thread;
+
+ public ThreadTestsForm() {
+ super("ThreadTests");
+ addCommand(startThreadCommand);
+ addCommand(stopThreadCommand);
+ // addCommand(startTimerCommand);
+ // addCommand(stopTimerCommand);
+ }
+
+ public static void onMIDletInit() {
+ if (testTimeronInit) {
+ Timer runAwayTimer = new Timer();
+ runAwayTimer.scheduleAtFixedRate(new TimerTask() {
+ public void run() {
+ System.out.println("runAwayTimer");
+
+ }
+ }, 100, 2000);
+ }
+ }
+
+ public void commandAction(Command c, Displayable d) {
+ if (c == startThreadCommand) {
+ thread = new Thread() {
+ public void run() {
+ while (true) {
+ try {
+ sleep(1000);
+ System.out.println("runAwayThread");
+ } catch (InterruptedException e) {
+ return;
+ }
+ }
+ }
+ };
+ thread.start();
+ } else if (c == stopThreadCommand) {
+ if (thread != null) {
+ thread.interrupt();
+ thread = null;
+ }
+ } else {
+ super.commandAction(c, d);
+ }
+ }
+}
Propchange: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/java/org/microemu/tests/ThreadTestsForm.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/app-data.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/app-data.txt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/app-data.txt (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/app-data.txt Mon May 26 15:20:19 2008
@@ -0,0 +1 @@
+private app-data
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/app-data.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/org/microemu/tests/resource-package.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/org/microemu/tests/resource-package.txt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/org/microemu/tests/resource-package.txt (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/org/microemu/tests/resource-package.txt Mon May 26 15:20:19 2008
@@ -0,0 +1 @@
+package relative
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/org/microemu/tests/resource-package.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/resource-path-text.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/resource-path-text.txt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/resource-path-text.txt (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/resource-path-text.txt Mon May 26 15:20:19 2008
@@ -0,0 +1 @@
+not absolute
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/main/resources/resource-path-text.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/site/apt/index.apt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/site/apt/index.apt (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/site/apt/index.apt Mon May 26 15:20:19 2008
@@ -0,0 +1,23 @@
+~~ @version $Revision: 1424 $ ($Author: vlads $) $Date: 2007-10-18 18:16:27 -0400 (Thu, 18 Oct 2007) $
+~~ See this file format http://maven.apache.org/guides/mini/guide-apt-format.html
+
+ ------------------
+ About microemu-test-midlet
+ ------------------
+
+
+About microemu-test-midlet
+
+ This project tests some MicroEmulator using <<{{{http://snapshot.pyx4me.com/pyx4me-cldcunit/}CLDCUnit}}>> J2ME JUnit base test framework.
+
+ J2ME application distributon {{microemu-test-midlet-#version#-test.jad}} and {{microemu-test-midlet-#version#-test.jar}} has two MIDLets.
+
+ * MainTest is used to execute tests manualy during .
+
+ * UnitTests is used to execute JUnit tests.
+
+ See the {{{source-repository.html}sources}} for this project.
+
+* Try this MIDlet
+
+ Start MicroEmulator Web Start {{{/microemu-webstart/open-local/~/microemu-tests/microemu-test-midlet/microemu-test-midlet-#version#-test.jnlp}microemu-test-midlet-#version#-test}}
\ No newline at end of file
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/ItemsOnFormTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/ItemsOnFormTest.java?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/ItemsOnFormTest.java (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/ItemsOnFormTest.java Mon May 26 15:20:19 2008
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.microemu.tests;
+
+import javax.microedition.lcdui.Item;
+import javax.microedition.lcdui.StringItem;
+
+import junit.framework.TestCase;
+
+public class ItemsOnFormTest extends TestCase {
+
+ public ItemsOnFormTest() {
+
+ }
+
+ public ItemsOnFormTest(String name) {
+ super(name);
+ }
+
+ public void testAddItems() {
+ int step= 0;
+ Item[] items= new Item[1];
+ items[step]= new StringItem(null, "one");
+
+ ItemsOnForm f = new ItemsOnForm(items);
+ for (int i = 1 ; i < 15; i++) {
+ f.commandAction(ItemsOnForm.addCommand, f);
+ }
+ }
+}
Propchange: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/ItemsOnFormTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/UnitTestsMIDLet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/UnitTestsMIDLet.java?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/UnitTestsMIDLet.java (added)
+++ harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/UnitTestsMIDLet.java Mon May 26 15:20:19 2008
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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 org.microemu.tests;
+
+import javax.microedition.lcdui.Display;
+import javax.microedition.lcdui.Displayable;
+import javax.microedition.midlet.MIDletStateChangeException;
+
+import junit.framework.TestCase;
+
+import cldcunit.runner.TestRunner;
+
+public class UnitTestsMIDLet extends TestRunner implements MIDletUnderTests {
+
+ protected void startApp() throws MIDletStateChangeException {
+ Manager.midletInstance = this;
+ try {
+ start(new TestCase[] { new ItemsOnFormTest() });
+ } catch (Exception e) {
+ System.out.println("Exception while setting up tests: " + e);
+ e.printStackTrace();
+ }
+ }
+
+ public void showMainPage() {
+
+ }
+
+ public void setCurrentDisplayable(Displayable nextDisplayable) {
+ Display display = Display.getDisplay(this);
+ display.setCurrent(nextDisplayable);
+ }
+
+}
Propchange: harmony/enhanced/microemulator/microemu-tests/microemu-test-midlet/src/test/java/org/microemu/tests/UnitTestsMIDLet.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/pom.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/pom.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/pom.xml (added)
+++ harmony/enhanced/microemulator/microemu-tests/pom.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+ <!-- @version $Revision: 1626 $ ($Author: vlads $) $Date: 2008-03-04 21:47:36 -0500 (Tue, 04 Mar 2008) $ -->
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu</artifactId>
+ <version>2.0.3-SNAPSHOT</version><!--me-version-->
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>microemu-tests</artifactId>
+ <name>microemu-tests</name>
+ <packaging>pom</packaging>
+
+ <description>microemu-tests</description>
+
+
+ <modules>
+ <!--module>microemu-test-gcf</module-->
+ <module>microemu-test-midlet</module>
+
+ <!-- Not part of the project build.
+ <module>bytecode-test-app</module>
+ -->
+
+ <!-- Not part of the project build. USed just for internal tests -->
+ <!--
+ <module>microemu-test-avetana</module>
+ <module>microemu-test-bluecove</module>
+ -->
+ </modules>
+
+ <distributionManagement>
+ <!-- no-deployment -->
+ <repository>
+ <id>pyx4j.com-no-deployment</id>
+ <url>file:///${basedir}/target/tmp</url>
+ </repository>
+ <snapshotRepository>
+ <id>pyx4j.com-no-deployment</id>
+ <url>file:///${basedir}/target/tmp</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+</project>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemu-tests/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-tests/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-tests/src/site/apt/index.apt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-tests/src/site/apt/index.apt (added)
+++ harmony/enhanced/microemulator/microemu-tests/src/site/apt/index.apt Mon May 26 15:20:19 2008
@@ -0,0 +1,15 @@
+~~ @version $Revision: 1424 $ ($Author: vlads $) $Date: 2007-10-18 18:16:27 -0400 (Thu, 18 Oct 2007) $
+~~ See this file format http://maven.apache.org/guides/mini/guide-apt-format.html
+
+ ------------------
+ About microemu-tests
+ ------------------
+
+
+About microemu-test-midlet
+
+ MicroEmulator build process includes multiple JUnit tests. CLDC and MIDP API signature validation is done using {{{http://jour.sourceforge.net/}Jour}}.
+
+ Start MicroEmulator Web Start with {{{/microemu-webstart/open-local/~/microemu-tests/microemu-test-midlet/microemu-test-midlet-#version#-test.jnlp}microemu-test-midlet-#version#-test}}.
+ This project tests some MicroEmulator functinality using <<{{{http://snapshot.pyx4me.com/pyx4me-cldcunit/}CLDCUnit}}>> J2ME JUnit base test framework.
+
Added: harmony/enhanced/microemulator/microemu-webstart/debug-read-me.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/debug-read-me.txt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/debug-read-me.txt (added)
+++ harmony/enhanced/microemulator/microemu-webstart/debug-read-me.txt Mon May 26 15:20:19 2008
@@ -0,0 +1,35 @@
+ # @version $Revision: 957 $ ($Author: vlads $) $Date: 2007-02-18 13:10:27 -0500 (Sun, 18 Feb 2007) $
+
+
+Development config is using java 6!
+ javaws -J<option> supply options to the vm.
+
+N.B.
+ me2-webstart-win.launch and me-2-webstart-unix.launch are using JAVA6_HOME variable
+
+
+0. Build webstart project using maven
+ for dubug version of jnlp use
+ mvn -P debug webstart:jnlp
+
+ N.B. You may need to build all project in maven
+
+ This is done in jetty-run.cmd
+
+
+There are 3 things to launch
+
+1. Local webserver
+ microemu-webstart\jetty-run.cmd
+
+ verify that server is running using FireFox http://localhost:8080/microemu-webstart/
+
+You need to create empty java project in microemu-webstart directory to see the created launchs
+
+2. Launch webstart application itself
+
+ microemu-webstart\me2-webstart-win.launch or me-2-webstart-unix.launch
+
+3. Then Debug the application
+
+ microemu-webstart\me2-webstart-debug.launch
Propchange: harmony/enhanced/microemulator/microemu-webstart/debug-read-me.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-webstart/jetty-run.cmd
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/jetty-run.cmd?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/jetty-run.cmd (added)
+++ harmony/enhanced/microemulator/microemu-webstart/jetty-run.cmd Mon May 26 15:20:19 2008
@@ -0,0 +1,11 @@
+@echo off
+rem @version $Revision: 942 $ ($Author: vlads $) $Date: 2007-02-16 17:41:16 -0500 (Fri, 16 Feb 2007) $
+title *Jetty:microemu-webstart
+
+call mvn -o -P debug webstart:jnlp
+echo Go to http://localhost:8080/microemu-webstart/
+call mvn %* jetty:run
+
+title Jetty:microemu-webstart - ended
+
+pause
Propchange: harmony/enhanced/microemulator/microemu-webstart/jetty-run.cmd
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-webstart/jetty-web.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/jetty-web.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/jetty-web.xml (added)
+++ harmony/enhanced/microemulator/microemu-webstart/jetty-web.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app>
+<!-- @version $Revision: 866 $ ($Author: vlads $) $Date: 2007-02-12 17:42:15 -0500 (Mon, 12 Feb 2007) $ -->
+ <!-- Dummy war for packaging -->
+</web-app>
Propchange: harmony/enhanced/microemulator/microemu-webstart/jetty-web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-webstart/key.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/key.txt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/key.txt (added)
+++ harmony/enhanced/microemulator/microemu-webstart/key.txt Mon May 26 15:20:19 2008
@@ -0,0 +1,31 @@
+
+1.
+ keystore created like this:
+
+ keytool -genkey -keystore MicroEmulator.keystore -storepass PWD -keypass PWD -alias MicroEmulatorSignJars -dname "cn=MicroEmulator Team"
+
+2.
+ keystore should be stored in file ${home}/.m2/MicroEmulator.keystore for build to work
+
+3.
+ Your ${home}/.m2/settings.xml should have password stored like this:
+
+ <settings>
+ ...
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault/>
+ </activation>
+ <properties>
+ <MicroEmulator-keystore-pwd>PWD</MicroEmulator-keystore-pwd>
+ </properties>
+ .....
+ </profiles>
+ <activeProfiles>
+ <activeProfile>default</activeProfile>
+ </activeProfiles>
+ </settings>
+
+
Propchange: harmony/enhanced/microemulator/microemu-webstart/key.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-debug.launch
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-debug.launch?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-debug.launch (added)
+++ harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-debug.launch Mon May 26 15:20:19 2008
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.jdt.launching.remoteJavaApplication">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/microemu-javase-swing"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="microemu-javase-swing"/>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="false"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;microemu-javase-swing&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;microemu-injected&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <co
ntainer memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;microemu-javase&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;microemu-midp&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.javaProject"/> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;javaProject name=&quot;microemu-cldc&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.
sourceContainer.javaProject"/> </sourceContainers> </sourceLookupDirector> "/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_CONNECTOR_ID" value="org.eclipse.jdt.launching.socketAttachConnector"/>
+<booleanAttribute key="org.eclipse.jdt.launching.ALLOW_TERMINATE" value="true"/>
+<mapAttribute key="org.eclipse.jdt.launching.CONNECT_MAP">
+<mapEntry key="port" value="8000"/>
+<mapEntry key="hostname" value="localhost"/>
+</mapAttribute>
+</launchConfiguration>
Added: harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-unix.launch
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-unix.launch?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-unix.launch (added)
+++ harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-unix.launch Mon May 26 15:20:19 2008
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="http://localhost:8080/microemu-webstart/local-debug-demo.jnlp -J-Xdebug -J-Xnoagent -J-Djava.compiler=NONE -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/microemu-javase-swt}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${env_var:JAVA6_HOME}/bin/javaws"/>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
+</listAttribute>
+</launchConfiguration>
Added: harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-win.launch
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-win.launch?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-win.launch (added)
+++ harmony/enhanced/microemulator/microemu-webstart/me-2-webstart-win.launch Mon May 26 15:20:19 2008
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="http://localhost:8080/microemu-webstart/local-debug-demo.jnlp -J-Xdebug -J-Xnoagent -J-Djava.compiler=NONE -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/microemu-javase-swt}"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${env_var:JAVA6_HOME}/bin/javaws.exe"/>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
+</listAttribute>
+</launchConfiguration>
Added: harmony/enhanced/microemulator/microemu-webstart/pom.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/pom.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/pom.xml (added)
+++ harmony/enhanced/microemulator/microemu-webstart/pom.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,214 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+ <!-- @version $Revision: 1626 $ ($Author: vlads $) $Date: 2008-03-04 21:47:36 -0500 (Tue, 04 Mar 2008) $ -->
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu</artifactId>
+ <version>2.0.3-SNAPSHOT</version><!--me-version-->
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>microemu-webstart</artifactId>
+ <name>microemu-webstart</name>
+ <packaging>pom</packaging>
+
+ <description>microemu-webstart</description>
+
+ <distributionManagement>
+ <!-- no-deployment in repository -->
+ <repository>
+ <id>pyx4j.com-no-deployment</id>
+ <url>file:///${basedir}/target/tmp</url>
+ </repository>
+ </distributionManagement>
+
+ <dependencies>
+
+ <!--
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-javase-swing</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ -->
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemulator</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-jsr-75</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-device-large</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-device-minimum</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-nokiaui</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-siemensapi</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-demo</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ </dependencies>
+
+ <properties>
+ <jnlpPrefix></jnlpPrefix>
+ </properties>
+
+ <profiles>
+ <profile>
+ <id>debug</id>
+ <properties>
+ <jnlpPrefix>local-debug-</jnlpPrefix>
+ </properties>
+ </profile>
+ <profile>
+ <id>build</id>
+ <properties>
+ <jnlpPrefix>snapshot-</jnlpPrefix>
+ </properties>
+ </profile>
+ <profile>
+ <id>release_webstart</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <properties>
+ <jnlpPrefix></jnlpPrefix>
+ </properties>
+ </profile>
+ </profiles>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>webstart-maven-plugin</artifactId>
+ <!-- http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html -->
+ <executions>
+ <execution>
+ <goals>
+ <goal>jnlp</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <!--outputDirectory></outputDirectory--> <!-- not required?? -->
+
+ <!-- transitive dependencies filter -->
+ <dependencies>
+ <!-- Note that only groupId and artifactId must be specified here. because of a limitation of the Include/ExcludesArtifactFilter -->
+ <!--includes>
+ <include>org.microemu:microemu-swing</include>
+ </includes-->
+ <!-- excludes>
+ <exclude></exclude>
+ <excludes-->
+ </dependencies>
+
+ <!-- JNLP generation -->
+ <jnlp>
+ <!-- default values -->
+ <resources>${project.basedir}/src/main/jnlp</resources>
+ <!--inputTemplateResourcePath>${project.basedir}</inputTemplateResourcePath-->
+ <inputTemplate>src/jnlp-templates/${jnlpPrefix}template.vm</inputTemplate> <!-- relative to inputTemplateResourcePath -->
+ <outputFile>${jnlpPrefix}demo.jnlp</outputFile> <!-- defaults to launch.jnlp -->
+
+ <!-- used to automatically identify the jar containing the main class. -->
+ <!-- this is perhaps going to change -->
+ <mainClass>org.microemu.app.Main</mainClass>
+ </jnlp>
+
+
+ <!-- SIGNING -->
+ <!-- defining this will automatically sign the jar and its dependencies, if necessary -->
+ <sign>
+ <keystore>${user.home}/.m2/MicroEmulator.keystore</keystore>
+ <keypass>${MicroEmulator-keystore-pwd}</keypass> <!-- we need to override passwords easily from the command line. ${keypass} -->
+ <storepass>${MicroEmulator-keystore-pwd}</storepass> <!-- ${storepass} -->
+ <alias>MicroEmulatorSignJars</alias>
+
+ <verify>true</verify>
+ </sign>
+
+ <!-- KEYSTORE MANGEMENT -->
+ <keystore>
+ <delete>false</delete> <!-- delete the keystore -->
+ <gen>false</gen> <!-- optional shortcut to generate the store. -->
+ </keystore>
+
+ <verbose>false</verbose>
+
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-assembly-4download</id>
+ <phase>site</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <copy overwrite="true" todir="${project.build.directory}/site/">
+ <fileset dir="${project.build.directory}/jnlp"/>
+ </copy>
+ <copy overwrite="true"
+ file="${project.build.directory}/jnlp/${jnlpPrefix}demo.jnlp"
+ tofile="${project.build.directory}/site/demo.jnlp"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.1</version>
+ <configuration>
+ <webAppSourceDirectory>${project.build.directory}/jnlp</webAppSourceDirectory>
+ <webXml>${basedir}/jetty-web.xml</webXml>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
+</project>
Propchange: harmony/enhanced/microemulator/microemu-webstart/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/local-debug-template.vm
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/local-debug-template.vm?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/local-debug-template.vm (added)
+++ harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/local-debug-template.vm Mon May 26 15:20:19 2008
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp
+ spec="1.0+"
+ codebase="http://localhost:8080/microemu-webstart/">
+ <information>
+ <title>MicroEmulator</title>
+ <vendor>Bartek Teodorczyk & Vlad Skarzhevskyy</vendor>
+ <homepage href="http://www.microemu.org/"/>
+ <description>MicroEmulator</description>
+ <description kind="short">MicroEmulator</description>
+ <icon href="icon.png"/>
+ <offline-allowed/>
+ </information>
+
+ <security>
+ <all-permissions/>
+ </security>
+ <update check="always"/>
+
+ <resources>
+ <j2se version="1.4+"/>
+ $dependencies
+ </resources>
+
+ <application-desc main-class="$mainClass">
+ <argument>--impl</argument>
+ <argument>org.microemu.cldc.file.FileSystem</argument>
+ <argument>org.microemu.midp.examples.simpledemo.SimpleDemoMIDlet</argument>
+ </application-desc>
+
+</jnlp>
\ No newline at end of file
Added: harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/snapshot-template.vm
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/snapshot-template.vm?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/snapshot-template.vm (added)
+++ harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/snapshot-template.vm Mon May 26 15:20:19 2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp
+ spec="1.0+"
+ codebase="http://snapshot.microemu.org/microemu-webstart"
+ href="demo.jnlp">
+ <information>
+ <title>MicroEmulator</title>
+ <vendor>Bartek Teodorczyk & Vlad Skarzhevskyy</vendor>
+ <homepage href="http://www.microemu.org/"/>
+ <description>MicroEmulator</description>
+ <description kind="short">MicroEmulator</description>
+ <icon href="icon.png"/>
+ <offline-allowed/>
+ </information>
+
+ <security>
+ <all-permissions/>
+ </security>
+ <update check="always"/>
+
+ <resources>
+ <j2se version="1.4+"/>
+ $dependencies
+ </resources>
+
+ <application-desc main-class="$mainClass">
+ <argument>--impl</argument>
+ <argument>org.microemu.cldc.file.FileSystem</argument>
+ <!--jadRewrite--><argument>org.microemu.midp.examples.simpledemo.SimpleDemoMIDlet</argument><!--jadRewrite-->
+ </application-desc>
+
+</jnlp>
\ No newline at end of file
Added: harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/template.vm
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/template.vm?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/template.vm (added)
+++ harmony/enhanced/microemulator/microemu-webstart/src/jnlp-templates/template.vm Mon May 26 15:20:19 2008
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp
+ spec="1.0+"
+ codebase="http://www.microemu.org/microemu-webstart"
+ href="demo.jnlp">
+ <information>
+ <title>MicroEmulator</title>
+ <vendor>Bartek Teodorczyk & Vlad Skarzhevskyy</vendor>
+ <homepage href="http://www.microemu.org/"/>
+ <description>MicroEmulator</description>
+ <description kind="short">MicroEmulator</description>
+ <icon href="icon.png"/>
+ <offline-allowed/>
+ </information>
+
+ <security>
+ <all-permissions/>
+ </security>
+
+ <resources>
+ <j2se version="1.4+"/>
+ $dependencies
+ </resources>
+
+ <application-desc main-class="$mainClass">
+ <argument>--impl</argument>
+ <argument>org.microemu.cldc.file.FileSystem</argument>
+ <!--jadRewrite--><argument>org.microemu.midp.examples.simpledemo.SimpleDemoMIDlet</argument><!--jadRewrite-->
+ </application-desc>
+
+</jnlp>
\ No newline at end of file
Added: harmony/enhanced/microemulator/microemu-webstart/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/src/site/apt/index.apt?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/src/site/apt/index.apt (added)
+++ harmony/enhanced/microemulator/microemu-webstart/src/site/apt/index.apt Mon May 26 15:20:19 2008
@@ -0,0 +1,61 @@
+~~ @version $Revision: 1424 $ ($Author: vlads $) $Date: 2007-10-18 18:16:27 -0400 (Thu, 18 Oct 2007) $
+~~ See this file format http://maven.apache.org/guides/mini/guide-apt-format.html
+
+ ------------------
+ MicroEmulator Web Start
+ ------------------
+
+
+MicroEmulator Web Start
+
+ To start MicroEmulator application click this link {{{demo.jnlp}Java Web Start}}.
+
+ You can Drag and Drop .jad files or http jad links to running MicroEmulator application.
+
+* Some example applications you can try.
+
+*---------------------------+-----------+
+| Drag and Drop .jad link | Web Start |
+*---------------------------+-----------+
+| {{{http://wintermute.de/wap/extended/5ud0ku.jad}A Sudoku Game}} | <<<{{{open/wintermute.de/wap/extended/5ud0ku.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+| {{{../microemu-examples/microemu-demo/microemu-demo.jad}MicroEmulator Demo}} | <<<{{{open-local/~/microemu-examples/microemu-demo/microemu-demo.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+| {{{../microemu-examples/microemu-fcview/microemu-fcview.jad}MicroEmulator JSR-75 Demo}} | <<<{{{open-local/~/microemu-examples/microemu-fcview/microemu-fcview.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+| {{{../microemu-tests/microemu-test-midlet/microemu-test-midlet-#version#-test.jad}MicroEmulator CLDCUnit tests}} | <<<{{{open-local/~/microemu-tests/microemu-test-midlet/microemu-test-midlet-#version#-test.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+| {{{http://www.google.com/gmm/apps/v1.4.4/L1/gmaps-Sony_Ericsson-W810_L1.jad}Google Maps for Sony Ericsson}} | <<<{{{open/www.google.com/gmm/apps/v1.4.4/L1/gmaps-Sony_Ericsson-W810_L1.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+| {{{http://www.google.com/gmm/apps/v1.4.4/L1/gmaps-Generic-Advanced_MIDP2_L1.jad}Google Maps Generic}} | <<<{{{open/www.google.com/gmm/apps/v1.4.4/L1/gmaps-Generic-Advanced_MIDP2_L1.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+| {{{http://www.gmail.com/app/v1.1.0/L1/gm-Sony_Ericsson-W810.jad}Google Gmail for Sony Ericsson}} | <<<{{{open/www.gmail.com/app/v1.1.0/L1/gm-Sony_Ericsson-W810.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+| {{{http://www.gmail.com/app/v1.1.0/L1/gm-Generic-Advanced_MIDP2.jad}Google Gmail Generic}} | <<<{{{open/www.gmail.com/app/v1.1.0/L1/gm-Generic-Advanced_MIDP2.jnlp}\u00bbOpen}}>>>
+*-----------------------+-----------+
+
+* Other MicroEmulator Web Start demonstrations
+
+ MicroEmulator Web Start with JSR-82 available at {{{http://bluecove.sourceforge.net/}BlueCove project website}}
+
+
+* Add a link from your page to start MicroEmulator.
+
+ Your users can start your MIDlet application with a single click.
+
+ URL Example:
+
+---
+For JAD URL:
+ http://wintermute.de/wap/extended/5ud0ku.jad
+MicroEmulator Web Start URL:
+ http://microemu.org/webstart/wintermute.de/wap/extended/5ud0ku.jnlp
+---
+
+ HTML text on your page:
+
+---
+ <a href="http://microemu.org/webstart/wintermute.de/wap/extended/5ud0ku.jnlp">Run it now</a>
+---
+
+ {{{http://microemu.org/webstart/wintermute.de/wap/extended/5ud0ku.jnlp}Try it yourself first}}
\ No newline at end of file
Added: harmony/enhanced/microemulator/microemu-webstart/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/src/site/fml/faq.fml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/src/site/fml/faq.fml (added)
+++ harmony/enhanced/microemulator/microemu-webstart/src/site/fml/faq.fml Mon May 26 15:20:19 2008
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+~~ @version $Revision: 970 $ ($Author: vlads $) $Date: 2007-02-19 01:53:33 -0500 (Mon, 19 Feb 2007) $
+~~ See this file format http://maven.apache.org/maven-1.x/plugins/faq/ and http://maven.apache.org/maven-1.x/plugins/xdoc/
+-->
+<faqs title="Frequently Asked Questions">
+ <part id="general">
+ <title>Java Web Start</title>
+
+ <faq id="FirefoxLinux">
+ <question>
+ I couldn't figure out how to run Java Web Start applications in Mozilla Firefox on Linux. There was nothing associated with the .jnlp files...
+ </question>
+ <answer>
+ <ul>
+ <li>
+ Java 1.4 or greater must be installed.
+ </li>
+ <li>
+ Click on the .jnlp file link and select "Open with Other Application"
+ </li>
+ <li>
+ Select "Use a custom command", and click "Browse".
+ </li>
+ <li>
+ Locate your java installation folder and select the file $JAVA_HOME/jre/javaws/javaws. or /usr/share/javaws/javaws.
+ </li>
+ <li>
+ Click OK.
+ </li>
+ </ul>
+ </answer>
+ </faq>
+
+ <faq id="WebStartConsole">
+ <question>
+ How can I open Web Start Console
+ </question>
+ <answer>
+ <ul>
+ <li>
+ Start <a href="http://java.sun.com/products/javawebstart/apps/player.jnlp">Java Web Start Application Manager</a>
+ </li>
+ <li>
+ From menu "Edit" -> "Preferences"...
+ </li>
+ <li>
+ Select "Advanced".
+ </li>
+ <li>
+ "Java Console" -> "Show Console".
+ </li>
+ <li>
+ Click OK.
+ </li>
+ </ul>
+ </answer>
+ </faq>
+
+ </part>
+</faqs>
\ No newline at end of file
Added: harmony/enhanced/microemulator/microemu-webstart/src/site/site.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemu-webstart/src/site/site.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemu-webstart/src/site/site.xml (added)
+++ harmony/enhanced/microemulator/microemu-webstart/src/site/site.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project>
+
+<!-- @version $Revision: 967 $ ($Author: vlads $) $Date: 2007-02-19 01:11:13 -0500 (Mon, 19 Feb 2007) $ -->
+
+ <bannerLeft>
+ <name>J2ME Device Emulator</name>
+ <src>../images/logo.png</src>
+ <href>http://www.microemu.org/</href>
+ </bannerLeft>
+
+ <body>
+ <menu ref="parent" />
+
+ <menu name="Overview">
+ <item name="Introduction" href="index.html" />
+ <item name="Web Start Faq" href="faq.html" />
+ </menu>
+
+ <menu name="Live example">
+ <item name="Web Start" href="demo.jnlp" />
+ </menu>
+
+ <menu ref="modules" />
+
+ <menu ref="reports" />
+ </body>
+
+</project>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemu-webstart/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemulator/assembly-all-sources.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemulator/assembly-all-sources.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemulator/assembly-all-sources.xml (added)
+++ harmony/enhanced/microemulator/microemulator/assembly-all-sources.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<assembly>
+ <!-- @version $Revision: 1195 $ ($Author: vlads $) $Date: 2007-05-02 11:10:38 -0400 (Wed, 02 May 2007) $ -->
+ <id>sources</id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${basedir}/..</directory>
+ <outputDirectory>${artifactId}-${version}</outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ <excludes>
+ <exclude>**/target/**</exclude>
+ <exclude>**/.settings/**</exclude>
+ <exclude>**/*.log</exclude>
+ <exclude>**/.*</exclude>
+ <exclude>build.properties</exclude>
+ <exclude>build.xml</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemulator/assembly-all-sources.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemulator/assembly-app.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemulator/assembly-app.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemulator/assembly-app.xml (added)
+++ harmony/enhanced/microemulator/microemulator/assembly-app.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<assembly>
+ <!-- @version $Revision: 1622 $ ($Author: barteo $) $Date: 2008-03-03 06:52:48 -0500 (Mon, 03 Mar 2008) $ -->
+ <id>app</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <dependencySets>
+ <dependencySet>
+ <unpack>true</unpack>
+ <outputDirectory></outputDirectory>
+ <outputFileNameMapping></outputFileNameMapping>
+ <scope>runtime</scope>
+ </dependencySet>
+ </dependencySets>
+</assembly>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemulator/assembly-app.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemulator/assembly-release.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemulator/assembly-release.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemulator/assembly-release.xml (added)
+++ harmony/enhanced/microemulator/microemulator/assembly-release.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<assembly>
+ <!-- @version $Revision: 1658 $ ($Author: vlads $) $Date: 2008-03-05 17:47:22 -0500 (Wed, 05 Mar 2008) $ -->
+ <id>release</id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${basedir}/..</directory>
+ <outputDirectory>${artifactId}-${version}</outputDirectory>
+ <includes>
+ <include>LICENSE</include>
+ <include>CREDITS</include>
+ <include>TODO</include>
+ <include>README</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+ <files>
+ <file>
+ <source>${basedir}/target/microemulator-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/microemulator.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/target/microemulator-${project.version}-sources.jar</source>
+ <destName>${artifactId}-${version}/microemulator-sources.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-javase-applet/target/microemu-javase-applet-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/microemu-javase-applet.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-device-large/target/microemu-device-large-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/devices/microemu-device-large.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-device-minimum/target/microemu-device-minimum-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/devices/microemu-device-minimum.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-device-resizable/target/microemu-device-resizable-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/devices/microemu-device-resizable.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-jsr-75/target/microemu-jsr-75-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/microemu-jsr-75.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-jsr-82/microemu-jsr-82.apache.license-2.0.txt</source>
+ <destName>${artifactId}-${version}/lib/microemu-jsr-82.apache.license-2.0.txt</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-jsr-82/target/microemu-jsr-82-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/microemu-jsr-82.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-jsr-120/target/microemu-jsr-120-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/microemu-jsr-120.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-jsr-135/target/microemu-jsr-135-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/microemu-jsr-135.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-nokiaui/target/microemu-nokiaui-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/microemu-nokiaui.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-extensions/microemu-siemensapi/target/microemu-siemensapi-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/microemu-siemensapi.jar</destName>
+ </file>
+
+ <file>
+ <source>${basedir}/../api/cldcapi10/target/cldcapi10-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/cldcapi10.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../api/cldcapi11/target/cldcapi11-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/cldcapi11.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../api/midpapi20/target/midpapi20-${project.version}.jar</source>
+ <destName>${artifactId}-${version}/lib/midpapi20.jar</destName>
+ </file>
+
+ <file>
+ <source>${basedir}/target/microemu-demo.jad</source>
+ <destName>${artifactId}-${version}/apps/microemu-demo.jad</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-examples/microemu-demo/target/microemu-demo-${project.version}-me.jar</source>
+ <destName>${artifactId}-${version}/apps/microemu-demo.jar</destName>
+ </file>
+ <file>
+ <source>${basedir}/../microemu-examples/microemu-demo/microemu-demo.html</source>
+ <destName>${artifactId}-${version}/microemu-demo.html</destName>
+ </file>
+ </files>
+</assembly>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemulator/assembly-release.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemulator/assembly-sources.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemulator/assembly-sources.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemulator/assembly-sources.xml (added)
+++ harmony/enhanced/microemulator/microemulator/assembly-sources.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<assembly>
+ <!-- @version $Revision: 1183 $ ($Author: vlads $) $Date: 2007-04-26 17:09:27 -0400 (Thu, 26 Apr 2007) $ -->
+ <id>sources</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>${basedir}/../microemu-cldc/src/main/java</directory>
+ <outputDirectory></outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../microemu-midp/src/main/java</directory>
+ <outputDirectory></outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../microemu-javase/src/main/java</directory>
+ <outputDirectory></outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../microemu-javase/src/main/resources</directory>
+ <outputDirectory></outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../microemu-javase-swing/src/main/java</directory>
+ <outputDirectory></outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ <fileSet>
+ <directory>${basedir}/../microemu-javase-swt/src/main/java</directory>
+ <outputDirectory></outputDirectory>
+ <useDefaultExcludes>true</useDefaultExcludes>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemulator/assembly-sources.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/microemulator/pom.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/microemulator/pom.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/microemulator/pom.xml (added)
+++ harmony/enhanced/microemulator/microemulator/pom.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://maven.apache.org/POM/4.0.0">
+ <!-- @version $Revision: 1658 $ ($Author: vlads $) $Date: 2008-03-05 17:47:22 -0500 (Wed, 05 Mar 2008) $ -->
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu</artifactId>
+ <version>2.0.3-SNAPSHOT</version><!--me-version-->
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>microemulator</artifactId>
+ <name>microemulator</name>
+ <packaging>pom</packaging>
+
+ <description>MicroEmulator one jar assembly for distribution</description>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-javase-swing</artifactId>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+
+ <!--
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-javase-swt</artifactId>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+ -->
+
+ <!-- Used for ready for applet Preprocessor should be only in pakaged jar -->
+ <dependency>
+ <groupId>org.microemu</groupId>
+ <artifactId>microemu-injected</artifactId>
+ <version>${project.version}</version>
+ <classifier>inject</classifier>
+ <optional>true</optional>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+
+ <!-- app jar-with-dependencies -->
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>jar-with-dependencies</id>
+ <phase>package</phase>
+ <goals><goal>single</goal></goals>
+ <configuration>
+ <attach>true</attach>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>assembly-app.xml</descriptor>
+ </descriptors>
+ <archive>
+ <manifest>
+ <mainClass>org.microemu.app.Main</mainClass>
+ </manifest>
+ <!-- this does not work, bug http://jira.codehaus.org/browse/MASSEMBLY-188 -->
+ <manifestEntries>
+ <Version>${label}</Version>
+ <Build-Time>${cctimestamp}</Build-Time>
+ <Build-Time>${cctimestamp}</Build-Time>
+ <Implementation-Version2>${pom.version}</Implementation-Version2>
+ <SVN-Revision>${scm.revision}</SVN-Revision>
+ <License>GNU Lesser General Public License (LGPL)</License>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>build</id>
+
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>jar-files-corrections</id>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <copy overwrite="true"
+ file="${basedir}/../microemu-examples/microemu-demo/target/microemu-demo-${project.version}-me.jad"
+ tofile="${project.build.directory}/microemu-demo.jad"/>
+ <replace value="microemu-demo.jar" token="microemu-demo-${project.version}-me.jar" dir="${project.build.directory}">
+ <include name="microemu-demo.jad"></include>
+ </replace>
+ </tasks>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-all-sources-4download</id>
+ <phase>site</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <mkdir dir="${project.build.directory}/site/download"/>
+ <copy overwrite="true"
+ file="${project.build.directory}/${project.build.finalName}-sources.tar.gz"
+ todir="${project.build.directory}/site/download"/>
+ <copy overwrite="true"
+ file="${project.build.directory}/${project.build.finalName}.tar.gz"
+ todir="${project.build.directory}/site/download"/>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>sources-jar</id>
+ <phase>package</phase>
+ <goals><goal>single</goal></goals>
+ <configuration>
+ <attach>true</attach>
+ <descriptors>
+ <descriptor>assembly-sources.xml</descriptor>
+ </descriptors>
+ <archive>
+ <manifestEntries>
+ <Version>${label}</Version>
+ <Build-Time>${cctimestamp}</Build-Time>
+ <Implementation-Version>${pom.version}</Implementation-Version>
+ <SVN-Revision>${scm.revision}</SVN-Revision>
+ <License>GNU Lesser General Public License (LGPL)</License>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </execution>
+ <execution>
+ <id>all-sources-gz</id>
+ <phase>install</phase>
+ <goals><goal>single</goal></goals>
+ <configuration>
+ <attach>false</attach>
+ <descriptors>
+ <descriptor>assembly-all-sources.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ <execution>
+ <id>release-package-gz</id>
+ <phase>install</phase>
+ <goals><goal>single</goal></goals>
+ <configuration>
+ <attach>false</attach>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>assembly-release.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+
+</project>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/microemulator/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/misc/cruisecontrol/ant456
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/misc/cruisecontrol/ant456?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/misc/cruisecontrol/ant456 (added)
+++ harmony/enhanced/microemulator/misc/cruisecontrol/ant456 Mon May 26 15:20:19 2008
@@ -0,0 +1,31 @@
+#! /bin/sh
+# @version $Revision: 687 $ ($Author: vlads $) $Date: 2007-02-09 15:50:31 -0500 (Fri, 09 Feb 2007) $
+#
+# This is environment specific file stored here for reference
+# located in build environment in ${BUILD_HOME}/bin
+
+export ANT_OPTS="${ANT_OPT} -Djava.awt.headless=true"
+export ANT_OPTS="${ANT_OPT} -Xms80m"
+export ANT_OPTS="${ANT_OPT} -Xmx150m"
+
+runAnt() {
+ echo START ANT BUILD [${JAVA_HOME}]
+ ${ANT_HOME}/bin/ant $@
+ if [ $? -ne 0 ]
+ then
+ echo Error in ${JAVA_HOME} build
+ exit 1
+ else
+ echo ANT BUILD [${JAVA_HOME}] SUCCESSFUL
+ fi
+}
+
+export JAVA_HOME=/usr/java/jdk1.4.2
+runAnt $@
+
+export JAVA_HOME=/usr/java/jdk1.5.0
+runAnt $@
+
+export JAVA_HOME=/usr/java/jdk1.6.0
+runAnt $@
+
Added: harmony/enhanced/microemulator/misc/cruisecontrol/ant456.cmd
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/misc/cruisecontrol/ant456.cmd?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/misc/cruisecontrol/ant456.cmd (added)
+++ harmony/enhanced/microemulator/misc/cruisecontrol/ant456.cmd Mon May 26 15:20:19 2008
@@ -0,0 +1,37 @@
+@echo off
+rem $Id: ant456.cmd 685 2007-02-09 19:21:42Z vlads $
+
+rem This is Environemtn specific file stored here for reference
+rem located in build environment in ${BUILD_HOME}/bin
+
+setlocal
+
+set ANT_OPTS=%ANT_OPTS% -Djava.awt.headless=true
+set ANT_OPTS=%ANT_OPTS% -Xms80m
+set ANT_OPTS=%ANT_OPTS% -Xmx150m
+
+set JAVA_HOME=C:\j2sdk1.4.2
+call :runAnt %*
+
+set JAVA_HOME=C:\jdk1.5.0
+call :runAnt %*
+
+set JAVA_HOME=C:\jdk1.6.0
+call :runAnt %*
+
+endlocal
+
+:Subroutines
+goto SubroutinesEND
+
+:runAnt
+echo START ANT BUILD [%JAVA_HOME%]
+call %ANT_HOME%\bin\ant.bat %*
+if errorlevel 1 (
+ echo Error in %JAVA_HOME% build
+ exit 1
+)
+echo ANT BUILD [%JAVA_HOME%] SUCCESSFUL
+goto :EOF
+
+:SubroutinesEND
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/misc/cruisecontrol/ant456.cmd
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/misc/eclipse/clean-up.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/misc/eclipse/clean-up.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/misc/eclipse/clean-up.xml (added)
+++ harmony/enhanced/microemulator/misc/eclipse/clean-up.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<profiles version="2">
+<profile kind="CleanUpProfile" name="MicroEmulator" version="2">
+<setting id="cleanup.add_missing_nls_tags" value="false"/>
+<setting id="cleanup.format_source_code" value="true"/>
+<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/>
+<setting id="cleanup.add_missing_override_annotations" value="true"/>
+<setting id="cleanup.remove_unused_private_types" value="true"/>
+<setting id="cleanup.remove_unused_private_fields" value="true"/>
+<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/>
+<setting id="cleanup.never_use_blocks" value="false"/>
+<setting id="cleanup.make_local_variable_final" value="true"/>
+<setting id="cleanup.remove_unused_private_methods" value="true"/>
+<setting id="cleanup.add_missing_deprecated_annotations" value="true"/>
+<setting id="cleanup.convert_to_enhanced_for_loop" value="false"/>
+<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/>
+<setting id="cleanup.remove_unused_imports" value="true"/>
+<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/>
+<setting id="cleanup.make_private_fields_final" value="true"/>
+<setting id="cleanup.sort_members" value="false"/>
+<setting id="cleanup.add_generated_serial_version_id" value="false"/>
+<setting id="cleanup.remove_unused_local_variables" value="false"/>
+<setting id="cleanup.organize_imports" value="true"/>
+<setting id="cleanup.remove_unused_private_members" value="false"/>
+<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/>
+<setting id="cleanup.remove_trailing_whitespaces" value="true"/>
+<setting id="cleanup.sort_members_all" value="false"/>
+<setting id="cleanup.remove_unnecessary_casts" value="true"/>
+<setting id="cleanup.make_parameters_final" value="false"/>
+<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/>
+<setting id="cleanup.use_this_for_non_static_field_access" value="true"/>
+<setting id="cleanup.use_blocks" value="true"/>
+<setting id="cleanup.remove_private_constructors" value="true"/>
+<setting id="cleanup.use_parentheses_in_expressions" value="false"/>
+<setting id="cleanup.always_use_this_for_non_static_method_access" value="false"/>
+<setting id="cleanup.add_missing_annotations" value="false"/>
+<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/>
+<setting id="cleanup.always_use_this_for_non_static_field_access" value="false"/>
+<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="true"/>
+<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/>
+<setting id="cleanup.add_default_serial_version_id" value="true"/>
+<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/>
+<setting id="cleanup.use_this_for_non_static_method_access" value="false"/>
+<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/>
+<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/>
+<setting id="cleanup.add_serial_version_id" value="true"/>
+<setting id="cleanup.make_variable_declarations_final" value="false"/>
+<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="true"/>
+<setting id="cleanup.always_use_blocks" value="true"/>
+</profile>
+</profiles>
Propchange: harmony/enhanced/microemulator/misc/eclipse/clean-up.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/microemulator/misc/eclipse/codetemplates-code.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/microemulator/misc/eclipse/codetemplates-code.xml?rev=660326&view=auto
==============================================================================
--- harmony/enhanced/microemulator/misc/eclipse/codetemplates-code.xml (added)
+++ harmony/enhanced/microemulator/misc/eclipse/codetemplates-code.xml Mon May 26 15:20:19 2008
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="classbody_context" deleted="false" description="Code in new class type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.classbody" name="classbody">
+</template><template autoinsert="true" context="setterbody_context" deleted="false" description="Code in created setters" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.setterbody" name="setterbody">${field} = ${param};</template><template autoinsert="true" context="constructorbody_context" deleted="false" description="Code in created constructor stubs" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name="constructorbody">${body_statement}
+// ${todo} Auto-generated constructor stub</template><template autoinsert="false" context="catchblock_context" deleted="false" description="Code in new catch blocks" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.catchblock" name="catchblock">Logger.debug(${exception_var});</template><template autoinsert="true" context="getterbody_context" deleted="false" description="Code in created getters" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.getterbody" name="getterbody">return ${field};</template><template autoinsert="false" context="newtype_context" deleted="false" description="Newly created files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.newtype" name="newtype">${filecomment}
+${package_declaration}
+
+${typecomment}
+${type_declaration}</template><template autoinsert="true" context="interfacebody_context" deleted="false" description="Code in new interface type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name="interfacebody">
+</template><template autoinsert="true" context="methodbody_context" deleted="false" description="Code in created method stubs" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodbody" name="methodbody">// ${todo} Auto-generated method stub
+${body_statement}</template><template autoinsert="true" context="annotationbody_context" deleted="false" description="Code in new annotation type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name="annotationbody">
+</template><template autoinsert="true" context="enumbody_context" deleted="false" description="Code in new enum type bodies" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.enumbody" name="enumbody">
+</template></templates>
\ No newline at end of file
Propchange: harmony/enhanced/microemulator/misc/eclipse/codetemplates-code.xml
------------------------------------------------------------------------------
svn:eol-style = native