You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ba...@apache.org on 2008/09/23 05:27:14 UTC
svn commit: r698076 - in
/maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace:
./ project-O/ project-O/pom.xml
Author: baerrach
Date: Mon Sep 22 20:27:14 2008
New Revision: 698076
URL: http://svn.apache.org/viewvc?rev=698076&view=rev
Log:
[MECLIPSE-493] Automatically locate workspace
Eclispe Plugin
- workspace type changes from String to File
- getWorkspaceConfiguration() now locates the workspace if it is null.
ReadWorkspaceLocations
- exposed some constants needed outside of class
- getProjectLocation()
- now package scoped for unit testing
- rewrote internals to read in the URI string inside ".location" file
- now closes stream
- readArtefact() now takes projectLocation as File instead of String
- readAvailableJREs() returns null if no prefs file exists and a workspace was located.
This causes the defaultJre to be used.
TempEclipseWorkspace
- added test fixtures used in TestCases.
- usePathToProject changed to which projects inside the workspace should be linked in the metadata/
This value was only null to avoid re-initializing the internal workspaces, which test fixtures resolves.
- Removed localizedIndicator as static test fixtures are configured once at class load time and
regenerating these files each test run is not a large burden. However misconfuration of the test files
and not regenerating was a source of errors during creation of extra ITs.
- Refactored out writeLocationFile()
- Deleted getWorkspaceLocation() as the variable is public.
AbstractEclipsePluginIT
- Added testProject( File basedir ) for ITs running inside the test eclipse workspaces.
Added:
maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/
maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/project-O/
maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/project-O/pom.xml (with props)
Added: maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/project-O/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/project-O/pom.xml?rev=698076&view=auto
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/project-O/pom.xml (added)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/project-O/pom.xml Mon Sep 22 20:27:14 2008
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>eclipse</groupId>
+ <artifactId>project-O</artifactId>
+ <version>1</version>
+ <name>Project O</name>
+ <packaging>jar</packaging>
+ <build>
+ <!--
+ Note the lack of eclipse plugin.
+ This project is already part of the workspace being tested
+ and the eclipse plugin should not be run on it.
+ -->
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/eclipse/dynamicWorkspace/project-O/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native