-
Notifications
You must be signed in to change notification settings - Fork 114
Unable to configure alternate Javadoc output directory #1325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pbaumard
wants to merge
2
commits into
apache:master
Choose a base branch
from
pbaumard:bugfix/alternate-output-directory
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| ------ | ||
| Using Alternative Output Directory | ||
| ------ | ||
| Vincent Siveton | ||
| ------ | ||
| 2009-08-04 | ||
| ------ | ||
|
|
||
| ~~ Licensed to the Apache Software Foundation (ASF) under one | ||
| ~~ or more contributor license agreements. See the NOTICE file | ||
| ~~ distributed with this work for additional information | ||
| ~~ regarding copyright ownership. The ASF licenses this file | ||
| ~~ to you under the Apache License, Version 2.0 (the | ||
| ~~ "License"); you may not use this file except in compliance | ||
| ~~ with the License. You may obtain a copy of the License at | ||
| ~~ | ||
| ~~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~~ | ||
| ~~ Unless required by applicable law or agreed to in writing, | ||
| ~~ software distributed under the License is distributed on an | ||
| ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| ~~ KIND, either express or implied. See the License for the | ||
| ~~ specific language governing permissions and limitations | ||
| ~~ under the License. | ||
|
|
||
| ~~ NOTE: For help with the syntax of this file, see: | ||
| ~~ http://maven.apache.org/doxia/references/apt-format.html | ||
|
|
||
| Using Alternative Output Directory | ||
|
|
||
| To run the Javadocs reports in an other output directory, you need to configure Javadoc Plugin as follow: | ||
|
|
||
|
pbaumard marked this conversation as resolved.
Outdated
|
||
| +-----+ | ||
| <project> | ||
| ... | ||
| <reporting> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-javadoc-plugin</artifactId> | ||
| <version>${project.version}</version> | ||
| <configuration> | ||
| <reportOutputDirectory>\${project.reporting.outputDirectory}/myoutput</reportOutputDirectory> | ||
| <destDir>myapidocs</destDir> | ||
| ... | ||
| </configuration> | ||
| </plugin> | ||
| ... | ||
| </plugins> | ||
| </reporting> | ||
| ... | ||
| </project> | ||
| +-----+ | ||
|
|
||
| Running <<<mvn javadoc:javadoc>>> will output the Javadoc in the | ||
| <$\{project.reporting.outputDirectory\}/myoutput/myapidocs> instead of the default directory, i.e. | ||
| <$\{project.reporting.outputDirectory\}/apidocs>. | ||
|
|
||
| <<Note>>: Running <mvn site> will automatically use the <$\{project.reporting.outputDirectory\}> directory and | ||
| in this case, <reportOutputDirectory> has no effect. Only <destDir> could be used. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...st/resources/unit/javadocjar-invalid-destdir/javadocjar-invalid-destdir-plugin-config.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
| --> | ||
|
|
||
| <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/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <groupId>org.apache.maven.plugins.maven-javadoc-plugin.unit</groupId> | ||
| <artifactId>javadocjar-invalid-destdir</artifactId> | ||
| <packaging>jar</packaging> | ||
| <version>1.0-SNAPSHOT</version> | ||
| <inceptionYear>2006</inceptionYear> | ||
| <name>Maven Javadoc Plugin Javadoc Jar Invalid Destdir Test</name> | ||
| <url>http://maven.apache.org</url> | ||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-javadoc-plugin</artifactId> | ||
| <configuration> | ||
| <destDir>${basedir}/target/test/unit/javadocjar-invalid-destdir/target/invalid</destDir> | ||
| <jarOutputDirectory>${basedir}/target/test/unit/javadocjar-invalid-destdir/target</jarOutputDirectory> | ||
| <outputDirectory>${basedir}/target/test/unit/javadocjar-invalid-destdir/target/site/apidocs</outputDirectory> | ||
| <javadocOptionsDir>${basedir}/target/test/unit/javadocjar-invalid-destdir/target/javadoc-bundle-options</javadocOptionsDir> | ||
| <finalName>javadocjar-invalid-destdir</finalName> | ||
|
Comment on lines
+36
to
+40
|
||
| <attach>true</attach> | ||
| <breakiterator>false</breakiterator> | ||
| <old>false</old> | ||
| <show>protected</show> | ||
| <quiet>true</quiet> | ||
| <verbose>false</verbose> | ||
| <author>true</author> | ||
| <encoding>ISO-8859-1</encoding> | ||
| <docfilessubdirs>false</docfilessubdirs> | ||
| <linksource>false</linksource> | ||
| <nocomment>false</nocomment> | ||
| <nodeprecated>false</nodeprecated> | ||
| <nodeprecatedlist>false</nodeprecatedlist> | ||
| <nohelp>false</nohelp> | ||
| <noindex>false</noindex> | ||
| <nonavbar>false</nonavbar> | ||
| <nosince>false</nosince> | ||
| <notree>false</notree> | ||
| <serialwarn>false</serialwarn> | ||
| <splitindex>false</splitindex> | ||
| <stylesheet>java</stylesheet> | ||
| <groups/> | ||
| <tags/> | ||
| <use>true</use> | ||
| <version>true</version> | ||
| <windowtitle>Maven Javadoc Plugin Javadoc Jar Invalid Destdir Test 1.0-SNAPSHOT API</windowtitle> | ||
| <debug>true</debug> | ||
| <failOnError>true</failOnError> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> | ||
50 changes: 50 additions & 0 deletions
50
src/test/resources/unit/javadocjar-invalid-destdir/javadocjar/invalid/destdir/App.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| package javadocjar.invalid.destdir; | ||
|
|
||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| /** | ||
| * This is a sample app class with javadoc | ||
| * | ||
| * @author Maria Odea Ching | ||
| */ | ||
| public class App | ||
| { | ||
|
|
||
| /** | ||
| * The main method | ||
| * | ||
| * @param args an array of strings that contains the arguments | ||
| */ | ||
| public static void main( String[] args ) | ||
| { | ||
| System.out.println( "Sample Application." ); | ||
| } | ||
|
|
||
| /** | ||
| * Sample method | ||
| * | ||
| * @param str the string to be displayed | ||
| */ | ||
| protected void sampleMethod( String str ) | ||
| { | ||
| System.out.println( str ); | ||
| } | ||
|
|
||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.