String getSubFolderName ( ) { if ( subFolderName == null ) { String relPath = getAbsolutePath ( ) . replace ( REPO_ABSOLUTE_PATH , "" ) ; relPath = relPath . substring ( relPath . indexOf ( SystemUtils . FILE_SEPARATOR ) + 1 ) ; String [ ] parts = relPath . split ( "[\\\\/]" ) ; subFolderName = ( ( parts . length < 3 ) || ( StringUtils . isBlank ( parts [ 1 ] ) ) ) ? "" : parts [ 1 ] ; } return subFolderName ; }
Returns the optional sub folder for the artifact