Re: [jbosstools-dev] need help on generating doc
by Max Rydahl Andersen
hi,
> Max,
>
> If Anthony checked out only "hibernatetools" folder he will apparently
> not
> be able to build the docs since the style sheets are located in the
> documentation folder.
hmmm...I thought we moved all styles to use the official jboss doc styles ?
Anyway that would explain it.
> So, he has try to check out the documentation folder (and place in next
> to
> the hibernatetools folder ) and afterwards build the docs and if it
> doesn't
> help check out the trunk.
Anthony, could you try that ?
If that does not work I found my old .m2/settings.xml but it is on a
machine which
network is foobar....
/max
>
> Best regards, Michael
>
>
> -----Original Message-----
> From: Max Rydahl Andersen [mailto:max.andersen@redhat.com]
> Sent: Wednesday, October 22, 2008 6:07 PM
> To: msorokin(a)exadel.com
> Cc: smukhina(a)exadel.com; jbosstools-dev(a)lists.jboss.org
> Subject: Re: [jbosstools-dev] need help on generating doc
>
>> As far as I know you don't need to adjust anything in /.m2/settings.xml.
>> All plugins are downloaded to .m2 automatically if they are required.
>
> Okey - I just thought the stylesheets were only available from jboss
> maven
> repository and not
> the main maven repository.
>
>> Do you think, it will be a solution to send Anthony ready-built cods
>> (html
>> and pdf)? The file with the cods is attached.
>
> Well, he needs to add things to the docs so he need to be able to build
> it.
>
> /max
>>
>> Best regards, Michael
>>
>>
>>> I remember there beeing a need to adjust something in
>>> ~/.m2/settings.xml
>>> or something ?
>>>
>>> /max
>>>
>>>
>>>> Hello Max,
>>>>
>>>> It's pretty basic:
>>>>
>>>> 1. You need to have maven installed.
>>>> 2. You need to run "mvn clean install" command in the doc(or in the
>>>> folder
>>>> with pom.xml) folder of your trunk.
>>>>
>>>> I have just check, the hibernate docs are built successfully.
>>>> Hence, Anthony has to make sure that he ran the "mvn clean install"
>>>> from
>>>>
>>>> "trunk\hibernatetools\docs\reference\" folder, since main pom.xml file
>>>> is in
>>>> that folder.
>>>>
>>>> The error message he sent is not really informative, though it's clear
>>>> that
>>>> Maven misses some plugin.
>>>> Please ask him to send more info.
>>>>
>>>> Best regards, Michael
>>>>
>>>> -----Original Message-----
>>>> From: Max Rydahl Andersen [mailto:max.andersen@redhat.com]
>>>> Sent: Wednesday, October 22, 2008 3:34 PM
>>>> To: Anthony Patricio; jbosstools-dev(a)lists.jboss.org
>>>> Cc: Svetlana Mukhina; 'michael sorokin'
>>>> Subject: Re: [jbosstools-dev] need help on generating doc
>>>>
>>>> Svetlana/Michael,
>>>>
>>>> Do you have the instructions for doing the docbook builds around ?
>>>>
>>>> /max
>>>>
>>>>> Hi,
>>>>> I'm trying to generate the hbtools doc but I have following error:
>>>>> org.jboss.maven.shared.resource.ResourceException: could not locate
>>>>> specified re
>>>>> source directory
>>>>> at
>>>>> org.jboss.maven.shared.resource.ResourceDelegate.collectFileNames(Res
>>>>> ourceDelegate.java:156)
>>>>> at
>>>>> org.jboss.maven.shared.resource.ResourceDelegate.process(ResourceDele
>>>>> gate.java:108)
>>>>> at
>>>>> org.jboss.maven.plugins.jdocbook.ResourceMojo.processProjectResources
>>>>> (ResourceMojo.java:69)
>>>>> at
>>>>> org.jboss.maven.plugins.jdocbook.ResourceMojo.process(ResourceMojo.ja
>>>>>
>>>>> Can someone help me?
>>>>>
>>>>> thanks,
>>>>> Anthony
>>>>> _______________________________________________
>>>>> jbosstools-dev mailing list
>>>>> jbosstools-dev(a)lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> /max
>>>
>
>
>
--
/max
17 years, 4 months
Errors in org.jboss.ide.eclipse.as.test
by Snjezana Peco
1) ProjectRuntimeTest.testProjectRuntime() -
java.lang.UnsupportedOperationException
The verifyClasspathEntries method converts an array into a list as follows:
List<String> list = Arrays.asList(required);
This line creates a read-only list and the verifyClasspathEntries method
tries to remove an item from the list.
2) JBIDE2512aTest.testJBIDE2512a() - NPE
The AbstractDeploymentTest.copy method , line 146
tmp = getFileLocation("projects/TempProject/" + sourceProjectName);
The tmp file doesn't exist because sourceProjectName is an array variable.
Attached is a patch that fixes these errors.
I haven't checked test failures.
Snjeza
PS
These tests make changes in the org.jboss.ide.eclipse.as.test plugin
that can break SVN (subclipse) when running in the PDE Runtime workbench.
Index: E:/workspace-3.4M7-JBoss/plugins/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/classpath/ProjectRuntimeTest.java
===================================================================
--- E:/workspace-3.4M7-JBoss/plugins/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/classpath/ProjectRuntimeTest.java (revision 11016)
+++ E:/workspace-3.4M7-JBoss/plugins/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/classpath/ProjectRuntimeTest.java (working copy)
@@ -21,7 +21,7 @@
*/
package org.jboss.ide.eclipse.as.test.classpath;
-import java.util.Arrays;
+import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
@@ -93,7 +93,10 @@
}
protected void verifyClasspathEntries(IClasspathEntry[] entries, String[] required) {
- List<String> list = Arrays.asList(required);
+ List<String> list = new ArrayList<String>();
+ for (int i = 0; i < required.length; i++) {
+ list.add(required[i]);
+ }
for( int i = 0; i < entries.length; i++ ) {
if( list.contains(entries[i].getPath().segment(0)))
list.remove(entries[i].getPath().segment(0));
Index: E:/workspace-3.4M7-JBoss/plugins/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/AbstractDeploymentTest.java
===================================================================
--- E:/workspace-3.4M7-JBoss/plugins/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/AbstractDeploymentTest.java (revision 11016)
+++ E:/workspace-3.4M7-JBoss/plugins/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/AbstractDeploymentTest.java (working copy)
@@ -123,7 +123,7 @@
while( !done ) {
srcKey = "copy" + i + "src";
destKey = "copy" + i + "dest";
- done = copy(props.getProperty(srcKey), props.getProperty(destKey));
+ done = copy(props.getProperty(srcKey), props.getProperty(destKey),i);
i++;
}
} catch (FileNotFoundException e) {
@@ -134,14 +134,14 @@
}
}
- protected boolean copy(String src, String dest) throws CoreException {
+ protected boolean copy(String src, String dest,int i) throws CoreException {
if( src == null || dest == null )
return true;
// do the copy
File srcFile, destFile, tmp;
srcFile = getFileLocation("projectPieces/" + src);
- tmp = getFileLocation("projects/TempProject/" + sourceProjectName);
+ tmp = getFileLocation("projects/TempProject/" + sourceProjectName[i-1]);
destFile = new File(tmp, dest);
FileUtil.fileSafeCopy(srcFile, destFile);
17 years, 4 months