Skip to content

ImpressiveCode/ic-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImpressiveCode ic-utils Project

License

Copyright (C) 2013 ImpressiveCode (http://impressivecode.org)

Depress is licensed under the GPL license. (http://www.gnu.org/licenses/gpl.html)

Preface

Plugin need Java 7 or higher to work. Source crawler can be used as a maven plugin or as a standalone application.

How to use as maven plugin

In plugin directory invoke following command:

mvn clean install

When plugin is installed in local repository, we can use it in own project by. Just only add it to pom file.

<build>
        <plugins>
            <plugin>
                <groupId>org.impressivecode.utils.sourcecrawler</groupId>
                <artifactId>ic-utils-sourcecrawler</artifactId>
                <version>1.0.0</version>
            </plugin>
    </plugins>
</build>

Now we can use scan goal in project by follow command:

mvn org.impressivecode.utils.sourcecrawler:ic-utils-sourcecrawler:1.0.0:scann

Plugin generate output file source crawler.xml in root directory of project.

How to use plugin as standalone scanner

In directory which contains plugins jar invoke followed command:

java -jar ic-utils-sourcecrawler-1.0.0-snapshot.jar -i ./dir/to/scan -o ./dir/output.xml

Mandatory flag is -i (--input). This flag shows where start scanning project's files. Optional flag is -o (--output) which shows where to save output in xml.

Sample output file

Sample output xml file:

<root>
  <file>
    <path>.\ic-utils\ic-utils-sourcecrawler\src\main\java\org\impressivecode\utils\sourcecrawler\document\DocumentWriter.java</path>
    <package>org.impressivecode.utils.sourcecrawler.document</package>
    <classes>
      <class>
        <type>Interface</type>
        <name>DocumentWriter</name>
        <exception>false</exception>
        <inner>false</inner>
        <test>false</test>
      </class>
    </classes>
  </file>
  <file>
    <path>.\ic-utils\ic-utils-sourcecrawler\src\main\java\org\impressivecode\utils\sourcecrawler\document\XMLDocumentWriterImpl.java</path>
    <package>org.impressivecode.utils.sourcecrawler.document</package>
    <classes>
      <class>
        <type>Class</type>
        <name>XMLDocumentWriterImpl</name>
        <exception>false</exception>
        <inner>false</inner>
        <test>false</test>
      </class>
    </classes>
  </file>
</root>

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages