anchor.diff:  ----
   
   
  -
  -=== spring-boot:findmainclass
  +[[spring-boot-ant-findmainclass]]
  +=== `spring-boot:findmainclass`
   The `findmainclass` task is used internally by `exejar` to locate a class declaring a
  -`main`. You can also use this task directly in your build if needed. The following
  -attributes are supported
  +`main`. You can also use this task directly in your build, if needed. The following
  +attributes are supported:
   
   [cols="1,2,2"]
   |====
  
positive.code: 
  
  [[build-tool-plugins-nested-libraries]]
  === Nested libraries
  When repackaging an archive you can include references to dependency files using the
  `org.springframework.boot.loader.tools.Libraries` interface. We don't provide any
  concrete implementations of `Libraries` here as they are usually build system specific.
  
  If your archive already includes libraries you can use `Libraries.NONE`.
  
  
  
  [[build-tool-plugins-find-a-main-class]]
  === Finding a main class
  If you don't use `Repackager.setMainClass()` to specify a main class, the repackager will
  use http://asm.ow2.org/[ASM] to read class files and attempt to find a suitable class
  with a `public static void main(String[] args)` method. An exception is thrown if more
  than one candidate is found.
  
  
  
  [[build-tool-plugins-repackage-implementation]]
  === Example repackage implementation
  Here is a typical example repackage:
  
  [source,java,indent=0]
  ----
  
negative.code: 	target/myproject-1.0.0.jar target/myproject-1.0.0.jar.original
  ----
  
  If you use a milestone or snapshot release, you also need to add the appropriate
  `pluginRepository` elements as shown in the following listing:
  
  [source,xml,indent=0,subs="verbatim,attributes"]
  ----
  