-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align plugin with AbstractMavenReport
- Loading branch information
Showing
94 changed files
with
668 additions
and
756 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,48 +1,48 @@ | ||
|
||
/* | ||
* 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. | ||
*/ | ||
|
||
File target = new File( basedir, "module2/target" ); | ||
assert target.exists() | ||
assert target.isDirectory() | ||
|
||
File apidocs = new File( target, "apidocs" ); | ||
assert apidocs.exists() | ||
assert apidocs.isDirectory() | ||
|
||
// module3 must be included | ||
File module3File = new File( apidocs, "org/apache/maven/plugin/javadoc/it/Module3Class.html" ); | ||
assert module3File.exists() | ||
assert module3File.isFile() | ||
|
||
// el-api must be included | ||
File elApiFile = new File( apidocs, "javax/el/ValueExpression.html" ); | ||
assert elApiFile.exists() | ||
assert elApiFile.isFile() | ||
|
||
// module1 must NOT be included | ||
File module1File = new File( apidocs, "org/apache/maven/plugin/javadoc/it/Module1Class.html" ); | ||
assert !module1File.exists() | ||
assert !module1File.isFile() | ||
|
||
// servlet-api must NOT be included | ||
File servletSpecFile = new File( apidocs, "javax/servlet/ServletContext.html" ); | ||
assert !servletSpecFile.exists() | ||
assert !servletSpecFile.isFile() | ||
|
||
|
||
/* | ||
* 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. | ||
*/ | ||
|
||
File target = new File( basedir, "module2/target" ); | ||
assert target.exists() | ||
assert target.isDirectory() | ||
|
||
File apidocs = new File( target, "site/apidocs" ); | ||
assert apidocs.exists() | ||
assert apidocs.isDirectory() | ||
|
||
// module3 must be included | ||
File module3File = new File( apidocs, "org/apache/maven/plugin/javadoc/it/Module3Class.html" ); | ||
assert module3File.exists() | ||
assert module3File.isFile() | ||
|
||
// el-api must be included | ||
File elApiFile = new File( apidocs, "javax/el/ValueExpression.html" ); | ||
assert elApiFile.exists() | ||
assert elApiFile.isFile() | ||
|
||
// module1 must NOT be included | ||
File module1File = new File( apidocs, "org/apache/maven/plugin/javadoc/it/Module1Class.html" ); | ||
assert !module1File.exists() | ||
assert !module1File.isFile() | ||
|
||
// servlet-api must NOT be included | ||
File servletSpecFile = new File( apidocs, "javax/servlet/ServletContext.html" ); | ||
assert !servletSpecFile.exists() | ||
assert !servletSpecFile.isFile() | ||
|
This file contains 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 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -1,51 +1,51 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
import java.io.File; | ||
File distroTarget = new File( basedir, "MJAVADOC-280-1-distro/target" ); | ||
File apidocs = new File( distroTarget, "apidocs" ); | ||
File testApidocs = new File( distroTarget, "testapidocs" ); | ||
File f; | ||
if ( !( f = new File( apidocs, "org/apache/maven/plugins/mjavadoc/it/moda/App.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
if ( !( f = new File( apidocs, "org/apache/maven/plugins/mjavadoc/it/modb/App.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
if ( !( f = new File( testApidocs, "org/apache/maven/plugins/mjavadoc/it/moda/AppTest.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
if ( !( f = new File( testApidocs, "org/apache/maven/plugins/mjavadoc/it/modb/AppTest.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
return true; | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import java.io.File; | ||
|
||
File distroTarget = new File( basedir, "MJAVADOC-280-1-distro/target/site" ); | ||
File apidocs = new File( distroTarget, "apidocs" ); | ||
File testApidocs = new File( distroTarget, "testapidocs" ); | ||
|
||
File f; | ||
if ( !( f = new File( apidocs, "org/apache/maven/plugins/mjavadoc/it/moda/App.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
|
||
if ( !( f = new File( apidocs, "org/apache/maven/plugins/mjavadoc/it/modb/App.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
|
||
if ( !( f = new File( testApidocs, "org/apache/maven/plugins/mjavadoc/it/moda/AppTest.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
|
||
if ( !( f = new File( testApidocs, "org/apache/maven/plugins/mjavadoc/it/modb/AppTest.html" ) ).exists() ) | ||
{ | ||
System.out.println( f + " does not exist!" ); | ||
return false; | ||
} | ||
|
||
return true; |
Oops, something went wrong.