JBoss Tools SVN: r15729 - in trunk/hibernatetools/tests/org.hibernate.eclipse.console.test: res/project/src and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-06-05 08:33:49 -0400 (Fri, 05 Jun 2009)
New Revision: 15729
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/hibernate.cfg.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/mapping/
Removed:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/hibernate.cfg.xml
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/mapping/
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/Customization.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/ConfigurableTestProject.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/TestProject.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/FilesTransfer.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4366 - code rafactoring
Deleted: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/hibernate.cfg.xml
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/hibernate.cfg.xml 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/hibernate.cfg.xml 2009-06-05 12:33:49 UTC (rev 15729)
@@ -1,9 +0,0 @@
-<!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
-
-<hibernate-configuration>
- <session-factory>
-
- </session-factory>
-</hibernate-configuration>
\ No newline at end of file
Copied: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/hibernate.cfg.xml (from rev 15019, trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/hibernate.cfg.xml)
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/hibernate.cfg.xml (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/hibernate.cfg.xml 2009-06-05 12:33:49 UTC (rev 15729)
@@ -0,0 +1,9 @@
+<!DOCTYPE hibernate-configuration PUBLIC
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+ <session-factory>
+
+ </session-factory>
+</hibernate-configuration>
\ No newline at end of file
Copied: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/mapping (from rev 15019, trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/mapping)
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java 2009-06-05 12:33:49 UTC (rev 15729)
@@ -20,6 +20,8 @@
public class ConsoleConfigurationTest extends TestCase {
+ public static final String HIBERNATE_CFG_XML_PATH = "/res/project/src/hibernate.cfg.xml".replaceAll("//", File.separator); //$NON-NLS-1$ //$NON-NLS-2$
+
private ConsoleConfiguration consoleCfg;
public ConsoleConfigurationTest(String name) {
@@ -61,10 +63,10 @@
File xmlConfig = null;
Bundle bundle = HibernateConsoleTestPlugin.getDefault().getBundle();
try {
- URL url = FileLocator.resolve(bundle.getEntry("/res/project/hibernate.cfg.xml")); //$NON-NLS-1$
+ URL url = FileLocator.resolve(bundle.getEntry(HIBERNATE_CFG_XML_PATH));
xmlConfig = new File(url.getFile());
} catch (IOException e) {
- fail("Cannot find /res/project/hibernate.cfg.xml file"); //$NON-NLS-1$
+ fail("Cannot find file: " + HIBERNATE_CFG_XML_PATH); //$NON-NLS-1$
}
return xmlConfig;
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/Customization.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/Customization.java 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/Customization.java 2009-06-05 12:33:49 UTC (rev 15729)
@@ -34,11 +34,6 @@
public static final boolean STOP_AFTER_MISSING_PACK = false;
/**
- * Delay in milliseconds after each package
- */
- public static final int EACTH_PACK_TEST_DELAY = 0;
-
- /**
* Use time profiler
*/
public static final boolean USE_CONSOLE_OUTPUT = true;
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java 2009-06-05 12:33:49 UTC (rev 15729)
@@ -11,6 +11,7 @@
package org.hibernate.eclipse.console.test.mappingproject;
import java.io.File;
+import java.io.IOException;
import java.util.regex.Pattern;
import junit.framework.Test;
@@ -18,14 +19,12 @@
import junit.framework.TestResult;
import junit.framework.TestSuite;
-import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
-import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.core.PackageFragmentRoot;
import org.eclipse.jdt.ui.IPackagesViewPart;
import org.eclipse.jdt.ui.JavaUI;
@@ -53,6 +52,8 @@
protected TestResult result = null;
+ protected int executions = 0;
+
public HibernateAllMappingTests(String name) {
super(name);
}
@@ -85,7 +86,7 @@
ConsoleConfigUtils.createConsoleConfig(consoleConfigName,
cfgFilePath, testProject.getIProject().getName());
ProjectUtils.toggleHibernateOnProject(testProject.getIProject(), true, consoleConfigName);
- testProject.getIProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
+ testProject.fullBuild();
}
/* (non-Javadoc)
@@ -107,9 +108,13 @@
super.tearDown();
}
- public void testEachPackWithTestSet() throws JavaModelException {
- long start_time = System.currentTimeMillis();
- int pack_count = 0;
+ /**
+ * Inspect all it's packages of the current testProject and
+ * execute all tests from TestSet, considering one test package as active.
+ * @throws CoreException
+ */
+ public void allTestsRunForProject() throws CoreException {
+ testProject.fullBuild();
IPackageFragmentRoot[] roots = testProject.getIJavaProject().getAllPackageFragmentRoots();
for (int i = 0; i < roots.length; i++) {
if (roots[i].getClass() != PackageFragmentRoot.class) {
@@ -149,7 +154,7 @@
}
closeAllEditors();
//==============================
- pack_count++;
+ executions++;
if (Customization.USE_CONSOLE_OUTPUT) {
System.out.print(result.errorCount() - prev_errCount + ConsoleTestMessages.HibernateAllMappingTests_errors + " \t"); //$NON-NLS-1$
System.out.print(result.failureCount() - prev_failCount + ConsoleTestMessages.HibernateAllMappingTests_fails + "\t"); //$NON-NLS-1$
@@ -168,12 +173,32 @@
prev_errCount = result.errorCount();
}
}
+ }
+
+ public void testEachPackWithTestSet() throws CoreException, IOException {
+ long start_time = System.currentTimeMillis();
+ // 1) ---
+ // here we use one BIG project configuration for testing - time consuming thing
+ //boolean useAllRes = testProject.useAllSources();
+ //assertTrue(useAllRes);
+ // 1) ---
+ // 2) +++
+ // here we use many SMALL projects configurations for testing.
+ // this case is essential better for run time.
+ boolean createListRes = testProject.createTestFoldersList();
+ assertTrue(createListRes);
+ // 2) +++
+ testProject.restartTestFolders();
+ executions = 0;
+ while (testProject.setupNextTestFolder()) {
+ allTestsRunForProject();
+ }
if (Customization.USE_CONSOLE_OUTPUT) {
- System.out.println( "====================================================="); //$NON-NLS-1$
- System.out.print( result.errorCount() + ConsoleTestMessages.HibernateAllMappingTests_errors + " \t"); //$NON-NLS-1$
- System.out.print( result.failureCount() + ConsoleTestMessages.HibernateAllMappingTests_fails + "\t"); //$NON-NLS-1$
- System.out.print(( System.currentTimeMillis() - start_time ) / 1000 + ConsoleTestMessages.HibernateAllMappingTests_seconds + "\t" ); //$NON-NLS-1$
- System.out.println( pack_count + ConsoleTestMessages.HibernateAllMappingTests_packages_tested );
+ System.out.println("====================================================="); //$NON-NLS-1$
+ System.out.print(result.errorCount() + ConsoleTestMessages.HibernateAllMappingTests_errors + " \t"); //$NON-NLS-1$
+ System.out.print(result.failureCount() + ConsoleTestMessages.HibernateAllMappingTests_fails + "\t"); //$NON-NLS-1$
+ System.out.print((System.currentTimeMillis() - start_time) / 1000 + ConsoleTestMessages.HibernateAllMappingTests_seconds + "\t" ); //$NON-NLS-1$
+ System.out.println(executions + ConsoleTestMessages.HibernateAllMappingTests_packages_tested );
}
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/TestSet.java 2009-06-05 12:33:49 UTC (rev 15729)
@@ -23,7 +23,10 @@
public class TestSet {
/**
- * use only addTestSuit to prevent errors!!!
+ * Creates test suite for configurable project
+ * @param consoleConfigName
+ * @param testPackage
+ * @param testProject
* @return
*/
public static TestSuite createTestSuite(String consoleConfigName,
@@ -33,6 +36,7 @@
test1.setConsoleConfigName(consoleConfigName);
test1.setTestPackage(testPackage);
test1.setTestProject(testProject);
+ /**/
OpenSourceFileTest test2 = new OpenSourceFileTest("testOpenSourceFileTest"); //$NON-NLS-1$
test2.setConsoleConfigName(consoleConfigName);
test2.setTestPackage(testPackage);
@@ -42,11 +46,14 @@
OpenMappingDiagramTest test4 = new OpenMappingDiagramTest("testOpenMappingDiagram"); //$NON-NLS-1$
test4.setConsoleConfigName(consoleConfigName);
test4.setTestPackage(testPackage);
+ /**/
//
suite.addTest(test1);
+ /**/
suite.addTest(test2);
suite.addTest(test3);
suite.addTest(test4);
+ /**/
return suite;
}
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/ConfigurableTestProject.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/ConfigurableTestProject.java 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/ConfigurableTestProject.java 2009-06-05 12:33:49 UTC (rev 15729)
@@ -13,9 +13,11 @@
import java.io.File;
import java.io.IOException;
import java.net.URL;
+import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
@@ -37,33 +39,29 @@
*/
public class ConfigurableTestProject extends TestProject {
- public static final String RESOURCE_PATH = "res/project/"; //$NON-NLS-1$
+ public static final String RESOURCE_SRC_PATH = "res/project/src/".replaceAll("//", File.separator); //$NON-NLS-1$ //$NON-NLS-2$
+ public static final String RESOURCE_LIB_PATH = "res/project/lib/".replaceAll("//", File.separator); //$NON-NLS-1$ //$NON-NLS-2$
+
+ protected ArrayList<String> foldersList = new ArrayList<String>();
+ protected int activePackage = -1;
+
public ConfigurableTestProject(String projectName) {
super(projectName);
}
protected void buildProject() throws JavaModelException, CoreException, IOException {
super.buildProject();
- IPath resourcePath = new Path(RESOURCE_PATH);
- File resourceFolder = resourcePath.toFile();
- URL entry = HibernateConsoleTestPlugin.getDefault().getBundle().getEntry(RESOURCE_PATH);
- URL resProject = FileLocator.resolve(entry);
- String tplPrjLcStr= FileLocator.resolve(resProject).getFile();
- resourceFolder = new File(tplPrjLcStr);
- if (!resourceFolder.exists()) {
- String out = NLS.bind(ConsoleTestMessages.MappingTestProject_folder_not_found,
- RESOURCE_PATH);
- throw new RuntimeException(out);
- }
+ //final File srcFolder = getFolder(RESOURCE_SRC_PATH);
long startCopyFiles = System.currentTimeMillis();
- IPackageFragmentRoot sourceFolder = createSourceFolder();
- FilesTransfer.copyFolder(resourceFolder, (IFolder) sourceFolder.getResource());
+ IPackageFragmentRoot sourcePackageFragment = createSourceFolder();
+ //FilesTransfer.copyFolder(srcFolder, (IFolder)sourcePackageFragment.getResource());
long startCopyLibs = System.currentTimeMillis();
- List<IPath> libs = copyLibs(resourceFolder);
+ final File libFolder = getFolder(RESOURCE_LIB_PATH);
+ List<IPath> libs = copyLibs(libFolder);
long startBuild = System.currentTimeMillis();
- generateClassPath(libs, sourceFolder);
- project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+ generateClassPath(libs, sourcePackageFragment);
+ fullBuild();
long stopBuild = System.currentTimeMillis();
if (Customization.USE_CONSOLE_OUTPUT){
System.out.println("====================================================="); //$NON-NLS-1$
@@ -72,4 +70,86 @@
System.out.println("build: " + ( ( stopBuild - startBuild ) / 1000 )); //$NON-NLS-1$
}
}
+
+ public void restartTestFolders() {
+ activePackage = -1;
+ }
+
+ public boolean setupNextTestFolder() throws IOException, CoreException {
+ activePackage++;
+ if (activePackage >= foldersList.size()) {
+ return false;
+ }
+ final String pack = foldersList.get(activePackage);
+ final File srcFolder = getFolder(RESOURCE_SRC_PATH + pack);
+ FilesTransfer.delete(new File(project.getLocation().append(SRC_FOLDER).toOSString()));
+ IPackageFragmentRoot sourcePackageFragment = createFolder(SRC_FOLDER + File.separator + pack);
+ FilesTransfer.copyFolder(srcFolder, (IFolder)sourcePackageFragment.getResource());
+ return true;
+ }
+
+ protected File getFolder(String path) throws IOException {
+ URL entry = HibernateConsoleTestPlugin.getDefault().getBundle().getEntry(path);
+ URL resProject = FileLocator.resolve(entry);
+ String resolvePath = FileLocator.resolve(resProject).getFile();
+ File folder = new File(resolvePath);
+ if (!folder.exists()) {
+ String out = NLS.bind(ConsoleTestMessages.MappingTestProject_folder_not_found, path);
+ throw new RuntimeException(out);
+ }
+ return folder;
+ }
+
+ public boolean createTestFoldersList() {
+ activePackage = -1;
+ foldersList = new ArrayList<String>();
+ File srcFolder = null;
+ try {
+ srcFolder = getFolder(RESOURCE_SRC_PATH);
+ } catch (IOException e) {
+ // ignore
+ }
+ if (srcFolder == null) {
+ return false;
+ }
+ FilesTransfer.collectFoldersWithFiles(srcFolder, FilesTransfer.filterFilesJava,
+ FilesTransfer.filterFolders, foldersList);
+ IPath base = Path.fromOSString(srcFolder.getPath());
+ for (int i = 0; i < foldersList.size(); i++) {
+ String str = foldersList.get(i);
+ IPath path = Path.fromOSString(str);
+ path = path.makeRelativeTo(base);
+ foldersList.set(i, path.toOSString());
+ }
+ return true;
+ }
+
+ public boolean useAllSources() {
+ activePackage = -1;
+ foldersList = new ArrayList<String>();
+ File srcFolder = null;
+ try {
+ srcFolder = getFolder(RESOURCE_SRC_PATH);
+ } catch (IOException e) {
+ // ignore
+ }
+ IPackageFragmentRoot sourcePackageFragment = null;
+ try {
+ sourcePackageFragment = createSourceFolder();
+ } catch (CoreException e) {
+ // ignore
+ }
+ if (srcFolder != null && sourcePackageFragment != null) {
+ FilesTransfer.copyFolder(srcFolder, (IFolder)sourcePackageFragment.getResource());
+ foldersList.add(""); //$NON-NLS-1$
+ return true;
+ }
+ return false;
+ }
+
+ public void fullBuild() throws CoreException {
+ IPackageFragmentRoot sourcePackageFragment = createSourceFolder();
+ sourcePackageFragment.getResource().refreshLocal(IResource.DEPTH_INFINITE, null);
+ project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+ }
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/TestProject.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/TestProject.java 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/project/TestProject.java 2009-06-05 12:33:49 UTC (rev 15729)
@@ -123,12 +123,16 @@
}
public IPackageFragmentRoot createFolder(String strFolder) throws CoreException {
+ IPath path = Path.fromOSString(strFolder);
+ for (int i = 0; i < path.segmentCount(); i++) {
+ IFolder folder = project.getFolder(path.uptoSegment(i + 1).toOSString());
+ if (!folder.exists()) {
+ folder.create(true, true, null);
+ }
+ }
IFolder folder = project.getFolder(strFolder);
if (!folder.exists()) {
folder.create(true, true, null);
- IPackageFragmentRoot root = javaProject
- .getPackageFragmentRoot(folder);
- return root;
}
return javaProject.getPackageFragmentRoot(folder);
}
@@ -138,7 +142,7 @@
}
public List<IPath> copyLibs(File res) throws CoreException {
- return copyLibs2(res.getAbsolutePath() + File.separator + LIB_FOLDER);
+ return copyLibs2(res.getAbsolutePath());
}
public List<IPath> copyLibs2(String absolutePath) throws CoreException {
@@ -155,7 +159,7 @@
throw new RuntimeException(out);
}
List<IPath> libs = new ArrayList<IPath>();
- FilesTransfer.copyFolder(libFolder, dst, FilesTransfer.filterJars,
+ FilesTransfer.copyFolder(libFolder, dst, FilesTransfer.filterFilesJar,
FilesTransfer.filterFolders, libs);
return libs;
}
@@ -167,7 +171,9 @@
for (IPath lib_path : libs) {
entries.add(JavaCore.newLibraryEntry(lib_path, null, null));
}
- entries.add(JavaCore.newSourceEntry(sourceFolder.getPath()));
+ if (sourceFolder != null) {
+ entries.add(JavaCore.newSourceEntry(sourceFolder.getPath()));
+ }
entries.add(JavaCore.newContainerEntry(JRE_CONTAINER));
javaProject.setRawClasspath(entries.toArray(new IClasspathEntry[0]), null);
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/FilesTransfer.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/FilesTransfer.java 2009-06-05 11:59:42 UTC (rev 15728)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/FilesTransfer.java 2009-06-05 12:33:49 UTC (rev 15729)
@@ -24,27 +24,35 @@
private FilesTransfer() {}
public static final FileFilter filterFiles = new FileFilter() {
- public boolean accept(File pathname) {
- return !pathname.isDirectory();
+ public boolean accept(File f) {
+ return f.exists() && f.isFile() && !f.isHidden();
}
};
public static final FileFilter filterFolders = new FileFilter() {
- public boolean accept(File pathname) {
- // exclude hidden files/folders
- if (pathname.isHidden()) {
- return false;
- }
- return pathname.isDirectory();
+ public boolean accept(File f) {
+ return f.exists() && f.isDirectory() && !f.isHidden();
}
};
- public static final FileFilter filterJars = new FileFilter() {
- public boolean accept(File pathname) {
- return pathname.isFile() && pathname.getName().endsWith(".jar"); //$NON-NLS-1$
+ public static final FileFilter filterFilesJar = new FileFilter() {
+ public boolean accept(File f) {
+ return f.exists() && f.isFile() && !f.isHidden() && f.getName().toLowerCase().endsWith(".jar"); //$NON-NLS-1$
}
};
+ public static final FileFilter filterFilesJava = new FileFilter() {
+ public boolean accept(File f) {
+ return f.exists() && f.isFile() && !f.isHidden() && f.getName().toLowerCase().endsWith(".java"); //$NON-NLS-1$
+ }
+ };
+
+ public static final FileFilter filterFilesXml = new FileFilter() {
+ public boolean accept(File f) {
+ return f.exists() && f.isFile() && !f.isHidden() && f.getName().toLowerCase().endsWith(".xml"); //$NON-NLS-1$
+ }
+ };
+
/**
* Copy whole folder content from source folder to destination folder.
* @param src - source folder
@@ -67,9 +75,6 @@
File[] files = src.listFiles(filterFiles);
for (int i = 0; i < files.length; i++) {
File file = files[i];
- if (!file.exists()) {
- continue;
- }
IFile iFile = dst.getFile(file.getName());
FileInputStream fis = null;
BufferedInputStream bis = null;
@@ -102,21 +107,38 @@
}
File[] dirs = src.listFiles(filterFolders);
for (int i = 0; i < dirs.length; i++) {
- File dir = dirs[i];
- if (!dir.exists()) {
- continue;
- }
- IFolder iFolder = dst.getFolder(dir.getName());
+ File srcDir = dirs[i];
+ IFolder dstDir = dst.getFolder(srcDir.getName());
try {
- if (!iFolder.exists()) {
- iFolder.create(true, true, null);
+ if (!dstDir.exists()) {
+ dstDir.create(true, true, null);
}
- copyFolder(dir, iFolder, filterFiles, filterFolders, filesList);
+ copyFolder(srcDir, dstDir, filterFiles, filterFolders, filesList);
} catch (CoreException e) {
e.printStackTrace();
}
}
}
+
+ /**
+ * Collect all folders starting from src folder, which contains at least one file
+ * accepted by filterFiles.
+ * @param src
+ * @param filterFiles
+ * @param filterFolders
+ * @param foldersList
+ */
+ public static void collectFoldersWithFiles(File src, FileFilter filterFiles,
+ FileFilter filterFolders, List<String> foldersList) {
+ File[] files = src.listFiles(filterFiles);
+ if (files.length > 0) {
+ foldersList.add(src.getPath());
+ }
+ File[] dirs = src.listFiles(filterFolders);
+ for (int i = 0; i < dirs.length; i++) {
+ collectFoldersWithFiles(dirs[i], filterFiles, filterFolders, foldersList);
+ }
+ }
/**
* Delete the whole directory
@@ -143,8 +165,10 @@
*/
public static void deleteFile(File file) {
try {
- if (!file.delete()) {
- throw new RuntimeException(getMessage(file));
+ if (file.exists()) {
+ if (!file.delete()) {
+ throw new RuntimeException(getMessage(file));
+ }
}
} catch (Throwable e) {
throw new RuntimeException(getMessage(file) ,e);
16 years, 4 months
JBoss Tools SVN: r15728 - trunk/smooks/docs/reference/en/images/config_page.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-06-05 07:59:42 -0400 (Fri, 05 Jun 2009)
New Revision: 15728
Added:
trunk/smooks/docs/reference/en/images/config_page/config_page3.png
trunk/smooks/docs/reference/en/images/config_page/config_page3a.png
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-755 -Smooks Design Page and Smooks Source Editor Page were updated.Screens were updated according to the new Smooks Configuration Editor.</p>
</body></html>
Added: trunk/smooks/docs/reference/en/images/config_page/config_page3.png
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/docs/reference/en/images/config_page/config_page3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/docs/reference/en/images/config_page/config_page3a.png
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/docs/reference/en/images/config_page/config_page3a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 4 months
JBoss Tools SVN: r15727 - in trunk/smooks/docs/reference/en: images/quick_start and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-06-05 07:59:10 -0400 (Fri, 05 Jun 2009)
New Revision: 15727
Modified:
trunk/smooks/docs/reference/en/images/config_page/config_page1.png
trunk/smooks/docs/reference/en/images/config_page/config_page2.png
trunk/smooks/docs/reference/en/images/quick_start/quick_start9.png
trunk/smooks/docs/reference/en/modules/quick_start.xml
trunk/smooks/docs/reference/en/modules/smooksformeditor_configurationpage.xml
trunk/smooks/docs/reference/en/modules/smooksformeditor_sourcepage.xml
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-755 -Smooks Design Page and Smooks Source Editor Page were updated.Screens were updated according to the new Smooks Configuration Editor.</p>
</body></html>
Modified: trunk/smooks/docs/reference/en/images/config_page/config_page1.png
===================================================================
(Binary files differ)
Modified: trunk/smooks/docs/reference/en/images/config_page/config_page2.png
===================================================================
(Binary files differ)
Modified: trunk/smooks/docs/reference/en/images/quick_start/quick_start9.png
===================================================================
(Binary files differ)
Modified: trunk/smooks/docs/reference/en/modules/quick_start.xml
===================================================================
--- trunk/smooks/docs/reference/en/modules/quick_start.xml 2009-06-05 08:45:46 UTC (rev 15726)
+++ trunk/smooks/docs/reference/en/modules/quick_start.xml 2009-06-05 11:59:10 UTC (rev 15727)
@@ -286,7 +286,8 @@
</orderedlist>
<para> Make sense?
-You should right click Resource List , select Add Smooks Resource>Java Binding>Bindings
+ You should right click Resource List , select <emphasis>
+ <property>Add Smooks Resource>Java Binding>Bindings</property></emphasis>.
</para>
<para>First of all, you should bind Order to LineOrder. To do this one Bindings Item should be added to the Resource List.</para>
<figure>
@@ -297,7 +298,7 @@
</imageobject>
</mediaobject>
</figure><para>Click on it and you should see Bindings Section to the right of Message Filtering Resources.Write <emphasis> <property>lineOrder</property></emphasis> in the Bean id field.</para>
- <para>Select example.trgmodel.LineOrder in the Class field and example.srcmodel.Order in the Name field.Your >Smooks Configuration Editor should look like this: </para>
+ <para>Select example.trgmodel.LineOrder in the Class field and example.srcmodel.Order in the Name field.Your <emphasis> <property>Smooks Configuration Editor</property></emphasis> should look like this: </para>
<figure>
<title>Mapping</title>
<mediaobject>
Modified: trunk/smooks/docs/reference/en/modules/smooksformeditor_configurationpage.xml
===================================================================
--- trunk/smooks/docs/reference/en/modules/smooksformeditor_configurationpage.xml 2009-06-05 08:45:46 UTC (rev 15726)
+++ trunk/smooks/docs/reference/en/modules/smooksformeditor_configurationpage.xml 2009-06-05 11:59:10 UTC (rev 15727)
@@ -8,20 +8,20 @@
<keyword>JBDS</keyword>
</keywordset>
</chapterinfo>
- <title>Smooks Configuration Editor Page</title>
- <para>In this section you will explore the details of Smooks Configuration Editor usage</para>
- <para><property>Smooks Configuration Editor</property> is one tab of the <property>Smooks Editor</property>. </para>
+ <title>Smooks Design Page</title>
+ <para>In this section you will explore the details of Smooks Design Page usage.</para>
+ <para><property>Smooks Design Page</property> is one tab of the <property>Smooks Editor</property>. </para>
<figure>
- <title>Graphical Editor</title>
+ <title>Design Page</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/config_page/config_page1.png" scale="90"/>
</imageobject>
</mediaobject>
</figure>
-
- <para> You can add/edit/remove the <link linkend="configurationpage_datedecoder">Date
- Decoder</link> on the Configuration page of the <property>Smooks Editor</property>. </para>
+ <para>This page consists of 3 setions:Message Filtering Resources,Input Data and Section devoted to the configurations of a selected in a Message Filtering Resources section Item.</para>
+ <para> You can bind classes <link linkend="quickstart_mapping">using Bindings item
+ </link> on the Design page of the <property>Smooks Editor</property>. </para>
<para> The configuration editor also edits the <link linkend="configurationpage_parsetype">Smooks parse
type</link> and manages the <link linkend="configurationpage_importfile">Import
Files</link>.</para>
@@ -29,10 +29,7 @@
<section id="configurationpage_parsetype">
<title>Smooks Parse Type</title>
- <para>Open the <emphasis>
- <property>Other Configurations</property>
- </emphasis> section, we will see there is a set of radio buttons:</para>
-
+ <para>If your config file doesn't contain Global Parametres item yet,you should add it by right click Resource List>Add Smooks Resource>Global Parametres.After this step you should add Param to just created Global Parametres. </para>
<figure>
<title>Smooks Parse Types</title>
<mediaobject>
@@ -41,20 +38,44 @@
</imageobject>
</mediaobject>
</figure>
- <para>Select the needed radio button to change the Smooks parse type. </para>
+ <para>Then left click <emphasis>
+ <property>Param</property>
+ </emphasis>and in the Param section,you will see a set of text fields:Name,Type and Text.Name value is required.To set a parse type you should write SAX/DOM to the
+ <emphasis>
+ <property>Text</property></emphasis> field.</para>
+
+ <figure>
+ <title>Smooks Parse Types</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/config_page/config_page3.png" scale="90"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>To apply changes to the smooks-config.xml click <emphasis>
+ <property>Save</property></emphasis> button (<emphasis>
+ <property>Ctrl+S</property></emphasis>). </para>
</section>
<section id="configurationpage_importfile">
- <title>Import File</title>
+ <title>Import Data</title>
<para> Open the <emphasis>
- <property>Other Configurations</property>
+ <property>Input Data</property>
</emphasis> section, there is an <emphasis>
<property>Import Files</property>
- </emphasis> list under the Smooks parse type buttons (see the figure above).</para>
-
- <para>There are three buttons on the right side of the <emphasis>
+ </emphasis> list at the bottom of the Design tab (see the figure below).</para>
+
+ <figure>
+ <title>Smooks Parse Types</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/config_page/config_page3a.png" scale="90"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>There are two buttons on the right side of the <emphasis>
<property>File Import</property>
- </emphasis> list. You can click those to add/edit/remove the import files.</para>
+ </emphasis> list. You can click those to add/remove the import files.</para>
<tip>
@@ -65,7 +86,7 @@
</tip>
</section>
- <section id="configurationpage_datedecoder">
+ <!--<section id="configurationpage_datedecoder">
<title>Date Decoder Detail Page</title>
<para>Date Decoder is a resourceConfig element in the Smooks configuration file. It
@@ -131,7 +152,7 @@
it to be the "Java type".</para>
<para>Now when we've learnt Smooks Configuration Editor Page, let's have a look at one more Smooks Editor Page - Smooks Source Editor Page and investigate its functionality</para>
- <!--
+
<para> The XML fragment generated by Smooks tools for the "Date
Decoder": </para> <para> <programlisting> <![CDATA[<resource-config
selector="decoder:DateLong">
@@ -139,9 +160,9 @@
name="locale-language">en</param> <param name="format">yyy-MM-dd
HH:mm:ss</param> <param name="locale-country">IE</param>
</resource-config>]]> </programlisting> </para>
- -->
+
</section>
- <!--
+
<section id="configurationpage_documenttype"> <title>Document Type
Detail Page</title> <para> </para> </section> <section
id="configurationpage_unhandleresourceconfig"> <title>Unhandle
Modified: trunk/smooks/docs/reference/en/modules/smooksformeditor_sourcepage.xml
===================================================================
--- trunk/smooks/docs/reference/en/modules/smooksformeditor_sourcepage.xml 2009-06-05 08:45:46 UTC (rev 15726)
+++ trunk/smooks/docs/reference/en/modules/smooksformeditor_sourcepage.xml 2009-06-05 11:59:10 UTC (rev 15727)
@@ -9,7 +9,7 @@
</keywordset>
</chapterinfo>
<title>Smooks Source Editor Page</title>
- <para>This section provides information about Smooks Source Editor Page</para>
+ <para>This section provides information about Smooks Source Editor Page.</para>
<section>
<title>XML Source Editor</title>
<para>You can use this editor to edit the Smooks Configuration file directly. </para>
16 years, 4 months
JBoss Tools SVN: r15726 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-06-05 04:45:46 -0400 (Fri, 05 Jun 2009)
New Revision: 15726
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
Log:
JBIDE-4346
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2009-06-05 08:04:20 UTC (rev 15725)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2009-06-05 08:45:46 UTC (rev 15726)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.ide.eclipse.as.core.server.internal.launch;
+import java.io.File;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Arrays;
@@ -161,11 +162,11 @@
if( argVal.startsWith(":")) //$NON-NLS-1$
argVal = argVal.substring(1);
- String[] asArr = argVal.split(":"); //$NON-NLS-1$
+ String[] asArr = argVal.split(File.pathSeparator);
asArr[0] = libPath;
String implode = ""; //$NON-NLS-1$
for( int i = 0; i < asArr.length; i++ )
- implode += asArr[i] + ":"; //$NON-NLS-1$
+ implode += asArr[i] + File.pathSeparator;
libPath = implode;
}
vmArgs = ArgsUtil.setArg(vmArgs, null,
16 years, 4 months
JBoss Tools SVN: r15725 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-06-05 04:04:20 -0400 (Fri, 05 Jun 2009)
New Revision: 15725
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
Log:
JBIDE-4346
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2009-06-05 07:18:07 UTC (rev 15724)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2009-06-05 08:04:20 UTC (rev 15725)
@@ -145,11 +145,33 @@
if( runtime.getRuntime().getLocation().append(
IJBossRuntimeResourceConstants.BIN).append(
- IJBossRuntimeResourceConstants.NATIVE).toFile().exists() )
+ IJBossRuntimeResourceConstants.NATIVE).toFile().exists() ) {
+ String argVal = ArgsUtil.getValue(vmArgs, null,
+ IJBossRuntimeConstants.SYSPROP + IJBossRuntimeConstants.JAVA_LIB_PATH);
+
+ String libPath =
+ runtime.getRuntime().getLocation()
+ .append(IJBossRuntimeResourceConstants.BIN)
+ .append(IJBossRuntimeResourceConstants.NATIVE).toOSString();
+ if( argVal != null ) {
+ if( argVal.startsWith("\"")) //$NON-NLS-1$
+ argVal = argVal.substring(1);
+ if( argVal.endsWith("\"")) //$NON-NLS-1$
+ argVal = argVal.substring(0, argVal.length()-1);
+ if( argVal.startsWith(":")) //$NON-NLS-1$
+ argVal = argVal.substring(1);
+
+ String[] asArr = argVal.split(":"); //$NON-NLS-1$
+ asArr[0] = libPath;
+ String implode = ""; //$NON-NLS-1$
+ for( int i = 0; i < asArr.length; i++ )
+ implode += asArr[i] + ":"; //$NON-NLS-1$
+ libPath = implode;
+ }
vmArgs = ArgsUtil.setArg(vmArgs, null,
IJBossRuntimeConstants.SYSPROP + IJBossRuntimeConstants.JAVA_LIB_PATH,
- runtime.getRuntime().getLocation().append(IJBossRuntimeResourceConstants.BIN).append(
- IJBossRuntimeResourceConstants.NATIVE).toOSString(), true);
+ libPath, true);
+ }
/* Claspath */
List<String> cp = wc.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, new ArrayList<String>());
16 years, 4 months
JBoss Tools SVN: r15724 - branches.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-06-05 03:18:07 -0400 (Fri, 05 Jun 2009)
New Revision: 15724
Added:
branches/jbosstools-3.1.0.M1/
Log:
branch devstudio-3.1.0.M1 from revision in build #234
Copied: branches/jbosstools-3.1.0.M1 (from rev 15693, trunk)
16 years, 4 months
JBoss Tools SVN: r15723 - in trunk/ws/tests/org.jboss.tools.ws.core.test: src/org/jboss/tools/ws/core/test/command and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2009-06-05 02:40:53 -0400 (Fri, 05 Jun 2009)
New Revision: 15723
Modified:
trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java
Log:
JBIDE-4350: change the manifest.mf to designate java1.5 as the test plugin's jre
Modified: trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF 2009-06-04 23:42:14 UTC (rev 15722)
+++ trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF 2009-06-05 06:40:53 UTC (rev 15723)
@@ -39,3 +39,4 @@
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
Import-Package: org.eclipse.jdt.launching
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java 2009-06-04 23:42:14 UTC (rev 15722)
+++ trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java 2009-06-05 06:40:53 UTC (rev 15723)
@@ -11,8 +11,6 @@
package org.jboss.tools.ws.core.test.command;
import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
16 years, 4 months
JBoss Tools SVN: r15722 - in trunk/documentation/whatsnew: as and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2009-06-04 19:42:14 -0400 (Thu, 04 Jun 2009)
New Revision: 15722
Added:
trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html
trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html
trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html
trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html
trunk/documentation/whatsnew/images/customprojectexamples.png
trunk/documentation/whatsnew/images/deploy_projects_compressed.png
trunk/documentation/whatsnew/images/japanesei18n.png
trunk/documentation/whatsnew/images/projectarchivelibs.png
trunk/documentation/whatsnew/images/quickconfigurationclone.png
trunk/documentation/whatsnew/images/richlayoutpanel.png
Modified:
trunk/documentation/whatsnew/index.html
trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html
trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html
trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html
Log:
first cut of whatsnew
Added: trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/as/as-news-3.1.0.M1.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -0,0 +1,106 @@
+<html>
+
+<head>
+<link rel="stylesheet" href="../whatsnew.css">
+<title>JBoss AS Tools 2.1.0.M1 News</title>
+</head>
+
+<body>
+
+<h1>JBoss AS Tools 2.0.0.M1 - New and Noteworthy</h1>
+
+ <p align="right"><a href="../index.html">< Main Index</a> <a href="../seam/seam-news-3.0.0.GA.html">JBoss Seam Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Project Archives</h3>
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p align="right">
+ <b>User Libraries fileset</b></td>
+ <td valign="top">
+ <p>If you use use User Libraries in your projects you can now also refer to these from project archives and have all the .jar/.zip files they refer included into the archive.</p>
+
+ <p><img src="../images/projectarchivelibs.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-122">Related jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Server</h3>
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p align="right">
+ <b>Deploy compressed archives</b></td>
+ <td valign="top">
+ <p>Our JBoss WTP Server adapters until now published all
+ projects in exploded form for ease of development and much
+ faster deployment. Sometimes though you are working where you
+ would like the projects to be deployed compressed. This is now
+ possible to enable in the server editor. If you enable this all projects that are deployed to that server will be compressed instead of in an exploded folder.</p>
+
+ <p><img src="../images/deploy_projects_compressed.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4193">Related jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <p align="right">
+ <b>Flexible Server Configurations</b></td>
+ <td valign="top">
+ <p>When you create a Server runtime in JBoss Tools you can now
+ adjust which directory will be used as the server configuration
+ root allowing you to use a configuration from outside the JBoss
+ installation. Furthermore you can now easily copy a
+ configuration to allow for futher customization.</p>
+
+ <p><img src="../images/quickconfigurationclone.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3896">Related jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+
+
+
+</table>
+
+</body>
+
+</html>
+
+
Added: trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/core/core-news-3.1.0.M1.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css" />
+<title>What's New Visual Page Editor</title>
+</head>
+<body>
+<h1>What's New Visual Page Editor</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a
+ href="../seam/seam-news-2.0.0.CR2.html">Seam Tools ></a></p>
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr />
+ <h3>General</h3>
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Eclipse 3.5</b></td>
+ <td valign="top">
+ <p>JBoss Tools 3.1 is targeting running on Eclipse 3.5 to benefit from all the bugfixes and new API's that are made available. Running on version of Eclipse before 3.4 might work for some plugins, but is not supported.</p>
+
+
+ <p><small><a
+ href="https://jira.jboss.org/jira/browse/JBIDE-4123">Related Jira</a></small></p>
+
+ </td>
+ </tr>
+
+
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Japanese Translation</b></td>
+ <td valign="top">
+ <p>Thanks to hard work of Sean Flanigan preparing
+ JBoss Tools for i18n and Shinobu Nogami's contribution
+ we now got Japanese translation for most of the JBoss
+ Tools plugins.</p>
+
+ <p><img src="../images/japanesei18n.png"/></p>
+
+ <p>You can try it out by running a japanese locale or
+ simply pass -nl jp as an argument to your eclipse. For
+ best results download the Eclipse platform
+ translations from
+ the <a href="http://www.eclipse.org/babel/downloads.php">Babel</a>
+ project.</p>
+
+ <p>If you want to help improve and complete the
+ japanese translation or any other language for that
+ matter then contact us on forums or jira.</p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3970">Related Jira</a></small></p>
+
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
+
+
Added: trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/examples/examples-news-1.1.0.M1.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>Examples 1.1.0.M1 What's New</title>
+</head>
+<body>
+<h1>Examples 1.1.0.M1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>General</h3>
+ <hr/>
+ </td>
+ </tr>
+ <td valign="top" align="right">
+ <a name="itemnam2e" id="itemname2"></a><b>User provided project examples</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>You can now add your own project examples url to JBoss Tools without providing a plugin. Allowing you to use 3rd party project examples or simply just try out creating your own.</p>
+
+<p><img src="../images/customprojectexamples.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4292">Related jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+ <td valign="top" align="right">
+ <a name="itemnam2e" id="itemname2"></a><b>Seam Examples with Cheatsheets</b>
+ </td>
+ <td width="70%" valign="top">
+ <p>We have added a few of the Seam exmples to the project example site and we also added Cheatsheets to some of these
+based on the Seam Example tutorials allowing you to see the explanation of the code and navigate to it directly in the IDE.</p>
+
+ <p><img src="../images/customprojectexamples.png"/></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4180">Related jira</a></small></p>
+ </td>
+ </tr>
+
+</table>
+
+</body>
+
+</html>
+
+
Added: trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html (rev 0)
+++ trunk/documentation/whatsnew/hibernate/hibernate-news-3.3.0.M1.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Language" content="en-us" />
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<link rel="stylesheet" href="../whatsnew.css"/>
+<title>Hibernate tools 3.3.0.M1 What's New</title>
+</head>
+<body>
+<h1>Hibernate tools 3.3.0.M1 What's New</h1>
+
+<p align="right"><a href="../index.html">< Main Index</a> <a href="../as/as-news-2.0.0.CR1.html">JBoss AS Tools ></a></p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Query Editor</h3>
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Open Query Editor with contents</b></td>
+ <td valign="top">
+ <p>Now when you open the Query or Criteria Editor from the context menu on Entities it will have a default query for the selected Entity.</p>
+
+<p>Similar when double clicking on entities from SessionFactory the HQL Editor will open up prefilled with HQL to get the select entity.</p>
+
+ <p>Related jiras: <small><a href="http://jira.jboss.org/jira/browse/JBIDE-4253">1</a>, <a href="http://jira.jboss.org/jira/browse/JBIDE-4259">2</a>, <a href="http://jira.jboss.org/jira/browse/JBIDE-4252">3</a></small></p>
+
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Rename configuration from Properties</b></td>
+ <td valign="top">
+ <p>You can now edit the name of a console configuration via the Properties view </p>
+
+ <p><small><a href="http://jira.jboss.org/jira/browse/JBIDE-3786">Releated Jira</a></small></p>
+
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr/>
+ </td>
+ </tr>
+
+
+</table>
+
+</body>
+
+</html>
+
+
Added: trunk/documentation/whatsnew/images/customprojectexamples.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/customprojectexamples.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/deploy_projects_compressed.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/deploy_projects_compressed.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/japanesei18n.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/japanesei18n.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/projectarchivelibs.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/projectarchivelibs.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/quickconfigurationclone.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/quickconfigurationclone.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/richlayoutpanel.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/richlayoutpanel.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2009-06-04 20:48:29 UTC (rev 15721)
+++ trunk/documentation/whatsnew/index.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -12,9 +12,36 @@
<html>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
+
+
<tr>
<td colspan="2">
<hr>
+ <h3>JBoss Tools 3.1 individual new and noteworthy</h3>
+ <hr>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td valign="top" align="left">
+ <p align="right"><b>3.1.0.M1</b>
+ <td valign="top">
+ <p><a href="core/core-news-3.1.0.M1.html">Core/General</a></p>
+ <p><a href="as/as-news-3.1.0.M1.html">AS/Project Archives Tools</a></p>
+ <p><a href="vpe/vpe-news-3.1.0.M1.html">Visual Page Editor</a></p>
+ <p><a href="seam/seam-news-3.1.0.M1.html">Seam Tools</a></p>
+ <p><a href="jst/jst-news-3.1.0.M1.html">JST/JSF Tools</a></p>
+ <p><a href="hibernate/hibernate-news-3.3.0.M1.html">Hibernate Tools</a></p>
+ <p><a href="examples/examples-news-1.1.0.M1.html">Project Examples</a></p>
+ </td>
+ </tr>
+
+
+
+ <tr>
+ <td colspan="2">
+ <hr>
<h3>JBoss Tools from 3.0.0.Alpha to 3.0.0.GA</h3>
<hr>
</td>
Modified: trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html 2009-06-04 20:48:29 UTC (rev 15721)
+++ trunk/documentation/whatsnew/jst/jst-news-3.1.0.M1.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -34,6 +34,27 @@
</td>
</tr>
+ <tr>
+ <td colspan="2">
+ <hr/>
+ <h3>OpenOn for id referencing attributes</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <p><b>OpenOn for id referencing attributes</b></p></td>
+ <td valign="top"><p>We now support navigating from i.e. <code>a4j:commandButton focus="customer"</code> to the tag with the id "customer".</p>
+<p>This OpenOn works for a long range of tags and attributes, thus if you have an attribute that refer to an id it should now work. If not, let us know so we can extend the support.</p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3570">Related Jira</a></small></p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><hr />
+ </td>
+ </tr>
+
</table>
</body>
Modified: trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html 2009-06-04 20:48:29 UTC (rev 15721)
+++ trunk/documentation/whatsnew/seam/seam-news-3.1.0.M1.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -17,7 +17,7 @@
<tr>
<td colspan="2">
<hr/>
- <h3>General</h3>
+ <h3>Refactoring</h3>
<hr/>
</td>
</tr>
@@ -36,23 +36,19 @@
</td>
</tr>
<tr>
- <td valign="top" align="left">
- <p><b>JBPM OpenOn</b></p></td>
- <td valign="top"><p>BPM process and pageflow definitions can now be navigated to directly via OpenOn's from source tab of components.xml editor.</p>
- <p><img src="images/bpmopenons.png"/></p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4002">Related Jira</a></small></p>
- </td>
- </tr>
- <tr>
<td colspan="2"><hr />
</td>
</tr>
<tr>
- <td valign="top" align="left"><a name="itemnam2e" id="itemname2"></a><b>Drools OpenOn</b></td>
+ <td valign="top" align="left"><a name="itemnam2e" id="itemname2"></a><b>Drools and jBPM OpenOn</b></td>
<td width="70%" valign="top">
- <p>Drools rule files can now be navigated to directly via OpenOn's from source tab of components.xml editor.</p>
+
+ <p>Drools rule files, jBPM process and pageflow definitions can now be navigated to directly via OpenOn's from source tab of components.xml editor.</p>
<p><img src="images/droolsopenons.png"/></p>
- <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-3901">Related Jira</a></small></p>
+
+ <p><img src="images/bpmopenons.png"/></p>
+
+ <p><small>Related jiras: <a href="https://jira.jboss.org/jira/browse/JBIDE-3901">1</a>, <a href="https://jira.jboss.org/jira/browse/JBIDE-4002">2</a></small></p>
</td>
</tr>
<tr>
@@ -65,7 +61,7 @@
<tr>
<td valign="top" align="left">
<p><b>OpenOn for @In</b></p></td>
- <td valign="top"><p>If user clicks on a field/method name with @In annotation then correspondent Seam context variable declarations are proposed to open.</p>
+ <td valign="top"><p>If user Ctrl+clicks on a field/method name with @In annotation then correspondent Seam context variable declarations are proposed to open.</p>
<p><img src="images/inopenons.png"/></p>
<p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4068">Related Jira</a></small></p>
</td>
@@ -81,7 +77,8 @@
<td valign="top" align="left">
<p><b>OpenOn</b></p></td>
<td valign="top"><p>Image file can now be navigated to directly via OpenOn's from <s:graphicImage@value>.</p>
- <p>Also OpenOn works for template attribute of <s:decorate>.</p>
+ <p>Also OpenOn works for template attribute of <s:decorate> tags.</p>
+
<p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4019">Related Jira</a></small></p>
</td>
</tr>
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html 2009-06-04 20:48:29 UTC (rev 15721)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.1.0.M1.html 2009-06-04 23:42:14 UTC (rev 15722)
@@ -23,11 +23,14 @@
</tr>
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Richfaces
- 3.3.1</b></td>
+ Layout Tags</b></td>
<td valign="top">
- <p>Richfaces 3.3.1 is now supported in code completion and visual
- page editor.</p>
+ <p>Richfaces 3.3 have added a good set of improvements done in the area of layout. The Visual page Editor now supports the new tags in 3.3 especially the layout support (i.e. <code>rich:layoutPanel</code>).</p>
+<p>The visual page editor will obey the layout options that Richfaces provide and give a good approximation of how the Richfaces tags will render.</p>
+
+<p><img src="../images/richlayoutpanel.png"/></p>
+
<p><small><a
href="https://jira.jboss.org/jira/browse/JBIDE-4381">Related Jira</a></small></p>
</td>
@@ -40,16 +43,18 @@
</td>
</tr>
<tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Context
- menu adjustment</b></td>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Vertical
+ and Horizontal Split</b></td>
<td valign="top">
- <p>Additional actions (cut,add, past) have been added to menu of
- parent tag.</p>
+ <p>Visual/Source editor can now be splitted vertically (on wide screen
+ monitors it's more convenient) or horizontally.</p>
- <p><img src="images/context-menu.png" /></p>
-
+ <p><img src="images/vpe-vertical-split.png"
+ alt="Vpe Vertilal split" /></p>
+ <p><img src="images/vpe-horizontal-split.png"
+ alt="Vpe Horizontal split" /></p>
<p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-4226">Related Jira</a></small></p>
+ href="https://jira.jboss.org/jira/browse/JBIDE-4152">Related Jira</a></small></p>
</td>
</tr>
<tr>
@@ -58,18 +63,17 @@
</td>
</tr>
<tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Vertical
- and Horizontal Split</b></td>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Context
+ menu adjustment</b></td>
<td valign="top">
- <p>Visual/Source editor can be splitted vertically (on wide screen
- monitors it's more convenient) or horizontally.</p>
+ <p>In the visual editor the "Parent Tag" menu for the
+ context menu of elements now includes additional
+ actions (cut,copy and paste) to allow for easier
+ manipulation of the XML structure beneath.</p>
- <p><img src="images/vpe-vertical-split.png"
- alt="Vpe Vertilal split" /></p>
- <p><img src="images/vpe-horizontal-split.png"
- alt="Vpe Horizontal split" /></p>
- <p><small><a
- href="https://jira.jboss.org/jira/browse/JBIDE-4152">Related Jira</a></small></p>
+ <p><img src="images/context-menu.png" /></p>
+
+ <p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-4226">Related Jira</a></small></p>
</td>
</tr>
<tr>
@@ -78,11 +82,23 @@
</td>
</tr>
<tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Rendering of facelet components</b></td>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Custom facelet components</b></td>
<td valign="top">
- <p>Visual rendering of custom facelet components has been added to
- visual page editor.</p>
+ <p>Custom facelet compontents defined via xhtml files are now rendered in the visual editor.</p>
+ <p>For example if you have a <code>facelets.taglib.xml</code> with the following content:</p>
+
+<code>
+ <namespace>http://mareshkau/tags</namespace><br/>
+ <tag><br/>
+ <tag-name>echo</tag-name><br/>
+ <source>components/echo.xhtml</source><br/>
+ </tag><br/>
+</code>
+
+<p>Then when the visual editor see's a echo tag from the mareshkau namespace, it will include the components/echo.xhtml in the rendering of the page.</p>
+
+<p>It will even do the proper attribute reference replacements, which is shown in the following snapshot by having ${echo} be replaced with the contents of the echo attribute (in this case the string "Echo").</p>
<p><img src="images/vpe-custom-tags-rendering.png" /></p>
<p><small><a
@@ -99,8 +115,8 @@
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>OpenOn for Richfaces</b></td>
<td valign="top">
- <p>OpenOn works for HTML tags which has 'jsfc' attribute as if this tag was correspondent JSF tag.</p>
- <p><img src="images/jsfcca.png" alt="Vpe Vertilal split" /></p>
+ <p>Our OpenOn's will now also work for those who prefer to use 'jsfc' attribute instead of the XML based facelet format. </p>
+ <p><img src="images/jsfcca.png" /></p>
<p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-1739">Related Jira</a></small></p>
</td>
16 years, 4 months
JBoss Tools SVN: r15721 - in trunk/jst/tests/org.jboss.tools.jst.web.test: projects/TestKbModel and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-06-04 16:48:29 -0400 (Thu, 04 Jun 2009)
New Revision: 15721
Added:
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.classpath
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.project
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/.jsdtscope
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/Messages.properties
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/User.java
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/META-INF/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/User.class
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/common-annotations.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-beanutils.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-collections.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-digester.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-logging.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-api.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-impl.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jstl.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/standard.jar
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/web.xml
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/facelet-taglib.xml
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/index.jsp
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/hello.jsp
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.properties
trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.xml
Modified:
trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.classpath
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.classpath (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.classpath 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="JavaSource"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 4.2 Runtime">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.6.0_04">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
+</classpath>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.project (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.project 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>TestKbModel</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.common.verification.verifybuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.jboss.tools.jsf.jsfnature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/.jsdtscope
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/.jsdtscope (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/.jsdtscope 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,7 @@
+#Thu Jun 04 11:17:46 MSD 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.component 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="TestKbModel">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/JavaSource"/>
+<property name="context-root" value="TestKbModel"/>
+<property name="java-output-path"/>
+</wb-module>
+</project-modules>
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 4.2 Runtime"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="jst.java"/>
+ <installed facet="jst.java" version="6.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/Messages.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/Messages.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/Messages.properties 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/Messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/User.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/User.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/User.java 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package demo;
+
+/**
+ * Created by JBoss Developer Studio
+ */
+public class User {
+
+ private String name;
+
+ /**
+ * @return User Name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param User Name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/JavaSource/demo/User.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/.faces-config.xml.jsfdia 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess">
+ <PROCESS-ITEM NAME="rules:#pages#inputUserName.jsp"
+ PATH="/pages/inputUserName.jsp" SHAPE="32,17,0,0" model-entity="JSFProcessGroup">
+ <PROCESS-ITEM ID="rules:#pages#inputUserName.jsp:0" NAME="item"
+ PATH="/pages/inputUserName.jsp" model-entity="JSFProcessItem">
+ <PROCESS-ITEM-OUTPUT ID="hello::#pages#hello.jsp" NAME="output"
+ PATH="/pages/hello.jsp" TARGET="rules:#pages#hello.jsp"
+ TITLE="hello" model-entity="JSFProcessItemOutput"/>
+ </PROCESS-ITEM>
+ </PROCESS-ITEM>
+ <PROCESS-ITEM NAME="rules:#pages#hello.jsp" PATH="/pages/hello.jsp"
+ SHAPE="240,33,0,0" model-entity="JSFProcessGroup"/>
+</PROCESS>
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/Messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/User.class
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/classes/demo/User.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <component>
+ <component-type>Component1</component-type>
+ <component-class>com.Component1</component-class>
+ </component>
+ <managed-bean>
+ <description>User Name Bean</description>
+ <managed-bean-name>user</managed-bean-name>
+ <managed-bean-class>demo.User</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/pages/inputUserName.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>hello</from-outcome>
+ <to-view-id>/pages/hello.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/common-annotations.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/common-annotations.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-beanutils.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-beanutils.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-collections.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-digester.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-digester.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-logging.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-impl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jsf-impl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jstl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/jstl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/standard.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/lib/standard.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib>
+ <tlib-version>1.0</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>taglib2</short-name>
+ <uri>taglib2</uri>
+ <tag>
+ <name>tagA</name>
+ <tag-class>com.TagA</tag-class>
+ <body-content>empty</body-content>
+ <description>Tag A</description>
+ </tag>
+</taglib>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/taglib2.tld
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/web.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/web.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/web.xml 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <display-name>TestKbModel</display-name>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <listener>
+ <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
+ </listener>
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <!-- Faces Servlet Mapping -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/facelet-taglib.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/facelet-taglib.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/facelet-taglib.xml 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
+ "facelet-taglib_1_0.dtd">
+<facelet-taglib>
+ <namespace>facelet_taglib</namespace>
+ <tag>
+ <tag-name>tag1</tag-name>
+ <handler-class/>
+ </tag>
+ <tag>
+ <tag-name>tag2</tag-name>
+ <component>
+ <component-type>ctype1</component-type>
+ <handler-class/>
+ </component>
+ </tag>
+</facelet-taglib>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/facelet-taglib.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/index.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/index.jsp (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/index.jsp 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+ <body>
+ <jsp:forward page="/pages/inputUserName.jsf" />
+ </body>
+</html>
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/index.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/hello.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/hello.jsp (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/hello.jsp 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,20 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+
+<f:loadBundle var="Message" basename="demo.Messages" />
+
+<html>
+ <head>
+ <title>Hello!</title>
+ </head>
+
+ <body>
+ <f:view>
+ <h3>
+ <h:outputText value="#{Message.hello_message}" />,
+ <h:outputText value="#{user.name}" />!
+ </h3>
+ </f:view>
+ </body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/hello.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,28 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+
+<f:loadBundle var="Message" basename="demo.Messages"/>
+
+<html>
+ <head>
+ <title>Input User Name Page</title>
+ </head>
+ <body>
+
+ <f:view>
+ <h1><h:outputText value="#{Message.header}"/></h1>
+
+ <h:messages style="color: red"/>
+
+ <h:form id="greetingForm">
+ <h:outputText value="#{Message.prompt_message}"/>
+ <h:inputText value="#{user.name}" required="true">
+ <f:validateLength maximum="30" minimum="3"/>
+ </h:inputText>
+
+ <h:commandButton action="hello" value="Say Hello!" />
+
+ </h:form>
+ </f:view>
+ </body>
+</html>
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/WebContent/pages/inputUserName.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.properties 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,3 @@
+#
+#Thu Jun 04 11:17:44 MSD 2009
+classpath.external=
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.xml 2009-06-04 20:48:29 UTC (rev 15721)
@@ -0,0 +1,74 @@
+<project name="KickStart" default="deploy" basedir="../">
+
+ <!-- Project settings -->
+ <property file="${basedir}/ant/build.properties" />
+
+ <property name="project.name" value="KickStart" />
+ <property name="web.content.dir" value="${basedir}/WebContent" />
+ <property name="web-inf.dir" value="${web.content.dir}/WEB-INF" />
+ <property name="build.dir" value="build" />
+ <property name="war.name" value="${build.dir}/${project.name}.war" />
+
+ <!-- Define a folder for deployment -->
+ <property name="deploy.dir" value="deploy" />
+
+ <!-- Compile classpath -->
+ <path id="compile.classpath">
+ <fileset dir="${webinf.dir}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <pathelement path="${classpath}" />
+ <pathelement path="${classpath.external}" />
+ <pathelement path="${webinf.dir}/classes" />
+ </path>
+
+ <!-- Copy any resource or configuration files -->
+ <target name="copyResources">
+ <copy todir="${web-inf.dir}/classes" includeEmptyDirs="no">
+ <fileset dir="JavaSource">
+ <patternset>
+ <include name="**/*.*" />
+ <exclude name="**/*.java" />
+ </patternset>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- Check timestamp on files -->
+ <target name="prepare">
+ <tstamp />
+ </target>
+
+ <!-- Remove classes directory for clean build -->
+ <target name="clean" description="Prepare for clean build">
+ <delete dir="${web-inf.dir}/classes" failonerror="false"/>
+ <mkdir dir="${web-inf.dir}/classes" />
+ </target>
+
+ <!-- Normal build of application -->
+ <target name="compile" depends="prepare, copyResources">
+ <javac srcdir="JavaSource" destdir="${web-inf.dir}/classes">
+ <classpath refid="compile.classpath" />
+ </javac>
+ </target>
+
+ <!-- Build Project -->
+ <target name="build" depends="prepare, compile" />
+
+ <!-- Rebuild Project -->
+ <target name="rebuild" depends="clean, prepare, compile" />
+
+ <!-- Build WAR -->
+ <target name="war" depends="build">
+ <mkdir dir="${build.dir}" />
+ <war warfile="${war.name}" basedir="${web.content.dir}" webxml="${web-inf.dir}/web.xml">
+ <exclude name="WEB-INF/web.xml" />
+ </war>
+ </target>
+
+ <target name="deploy" depends="war">
+ <delete dir="${deploy.dir}/${project.name}" failonerror="false"/>
+ <copy file="${war.name}" todir="${deploy.dir}" />
+ </target>
+
+</project>
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.web.test/projects/TestKbModel/ant/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java 2009-06-04 20:39:45 UTC (rev 15720)
+++ trunk/jst/tests/org.jboss.tools.jst.web.test/src/org/jboss/tools/jst/web/test/KbModelTest.java 2009-06-04 20:48:29 UTC (rev 15721)
@@ -11,7 +11,14 @@
package org.jboss.tools.jst.web.test;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.jboss.tools.common.test.util.TestProjectProvider;
+import org.jboss.tools.jst.web.kb.IKbProject;
+import org.jboss.tools.jst.web.kb.KbProjectFactory;
+import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
+import org.jboss.tools.test.util.JUnitUtils;
import junit.framework.TestCase;
@@ -21,14 +28,35 @@
IProject project = null;
boolean makeCopy = true;
- public KbModelTest() {}
+ public KbModelTest() {
+ super("Kb Model Test");
+ }
public void setUp() throws Exception {
+ provider = new TestProjectProvider("org.jboss.tools.jst.web.test",
+ null,"TestKbModel" ,true);
+ project = provider.getProject();
+ project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ this.project.build(IncrementalProjectBuilder.FULL_BUILD, null);
+ }
+ private IKbProject getKbProject() {
+ IKbProject kbProject = null;
+ try {
+ kbProject = (IKbProject)project.getNature(IKbProject.NATURE_ID);
+ } catch (Exception e) {
+ JUnitUtils.fail("Cannot get seam nature.",e);
+ }
+ return kbProject;
}
public void testXMLScanner() {
-
+ IKbProject kbProject = getKbProject();
+ ITagLibrary[] ls = kbProject.getTagLibraries();
+// System.out.println("Libraries found=" + ls.length);
+// for (int i = 0; i < ls.length; i++) {
+// System.out.println(ls[i] + ":=>" + ls[i].getComponents().length + " " + ls[i].getURI());
+// }
}
public void testKbProjectObjects() {
16 years, 4 months
JBoss Tools SVN: r15720 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-06-04 16:39:45 -0400 (Thu, 04 Jun 2009)
New Revision: 15720
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/XMLScanner.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/XMLScanner.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/XMLScanner.java 2009-06-04 20:04:11 UTC (rev 15719)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/XMLScanner.java 2009-06-04 20:39:45 UTC (rev 15720)
@@ -60,6 +60,7 @@
*/
public boolean isRelevant(IFile resource) {
if(resource.getName().endsWith(".xml")) return true; //$NON-NLS-1$
+ if(resource.getName().endsWith(".tld")) return true; //$NON-NLS-1$
return false;
}
16 years, 4 months