protected void invokeSpringBootUtilCommand ( File installDirectory , String fatArchiveSrcLocation , String thinArchiveTargetLocation , String libIndexCacheTargetLocation ) throws Exception { SpringBootUtilTask springBootUtilTask = ( SpringBootUtilTask ) ant . createTask ( "antlib:net/wasdev/wlp/ant:springBootUtil" ) ; if ( springBootUtilTask == null ) { throw new IllegalStateException ( MessageFormat . format ( messages . getString ( "error.dependencies.not.found" ) , "springBootUtil" ) ) ; } Validate . notNull ( fatArchiveSrcLocation , "Spring Boot source archive location cannot be null" ) ; Validate . notNull ( thinArchiveTargetLocation , "Target thin archive location cannot be null" ) ; Validate . notNull ( libIndexCacheTargetLocation , "Library cache location cannot be null" ) ; springBootUtilTask . setInstallDir ( installDirectory ) ; springBootUtilTask . setTargetThinAppPath ( thinArchiveTargetLocation ) ; springBootUtilTask . setSourceAppPath ( fatArchiveSrcLocation ) ; springBootUtilTask . setTargetLibCachePath ( libIndexCacheTargetLocation ) ; springBootUtilTask . execute ( ) ; }
Executes the SpringBootUtilTask to thin the Spring Boot application executable archive and place the thin archive and lib . index . cache in the specified location .