src/main/java/org/jboss/loom/migrators/server/ServerMigrator.java
private CopyFileAction createCopyActionForKeyFile(ServerMigratorResource resource, String fName){
        // TODO:
        final String property = "${jboss.server.home.dir}";

        // TODO: MIGR-54 The paths in AS 5 config relate to some base dir. Find out which and use that, instead of searching.
        //       Then, create the actions directly in the code creating this "files to copy" collection.
        File as5profileDir = getGlobalConfig().getAS5Config().getProfileDir();
        File src;
        try {
            src = Utils.searchForFile(fName, as5profileDir).iterator().next();
        } catch( CopyException ex ) {
            //throw new ActionException("Failed copying a security file: " + ex.getMessage(), ex);
            // Some files referenced in security may not exist. (?)
            log.warn("Couldn't find file referenced in AS 5 server config: " + fName);
            return null;
        }

        if( ! resource.getKeystores().add(src) ) return null;

        File target = Utils.createPath(getGlobalConfig().getAS7Config().getConfigDir(), "keys", src.getName());
        CopyFileAction action = new CopyFileAction( this.getClass(), src, target, CopyFileAction.IfExists.SKIP);
        return action;
    }
/**
     * Creates CopyFileAction for keystores files from Connectors
     *
     * @param resource helping class containing all resources for ServerMigrator
     * @param fName name of the keystore file to be copied into AS7
     * @return  null if the file is already set for copying or the file cannot be found in the AS5 structure else
     *          created CopyFileAction
     */
Creates CopyFileAction for keystores files from Connectors
@param resource helping class containing all resources for ServerMigrator
@param fName name of the keystore file to be copied into AS7
@return  null if the file is already set for copying or the file cannot be found in the AS5 structure else
created CopyFileAction
Creates CopyFileAction for keystores files from Connectors @param resource helping class containing all resources for ServerMigrator @param fName name of the keystore file to be copied into AS7 @return null if the file is already set for copying or the file cannot be found in the AS5 structure else created CopyFileAction
private CopyFileAction createCopyActionForKeyFile(ServerMigratorResource resource, String fName){
        final String property = "${jboss.server.home.dir}";
         MIGR-54 The paths in AS 5 config relate to some base dir. Find out which and use that, instead of searching.
        File as5profileDir = getGlobalConfig().getAS5Config().getProfileDir();
        File src;
        try {
            src = Utils.searchForFile(fName, as5profileDir).iterator().next();
        } catch( CopyException ex ) {
            log.warn("Couldn't find file referenced in AS 5 server config: " + fName);
            return null;
        }
        if( ! resource.getKeystores().add(src) ) return null;
        File target = Utils.createPath(getGlobalConfig().getAS7Config().getConfigDir(), "keys", src.getName());
        CopyFileAction action = new CopyFileAction( this.getClass(), src, target, CopyFileAction.IfExists.SKIP);
        return action;
    }
private CopyFileAction createCopyActionForKeyFile ( ServerMigratorResource resource , String fName ) { final String property = "${jboss.server.home.dir}" ; File as5profileDir = getGlobalConfig ( ) . getAS5Config ( ) . getProfileDir ( ) ; File src ; try { src = Utils . searchForFile ( fName , as5profileDir ) . iterator ( ) . next ( ) ; } catch ( CopyException ex ) { log . warn ( "Couldn't find file referenced in AS 5 server config: " + fName ) ; return null ; } if ( ! resource . getKeystores ( ) . add ( src ) ) return null ; File target = Utils . createPath ( getGlobalConfig ( ) . getAS7Config ( ) . getConfigDir ( ) , "keys" , src . getName ( ) ) ; CopyFileAction action = new CopyFileAction ( this . getClass ( ) , src , target , CopyFileAction . IfExists . SKIP ) ; return action ; }
Creates CopyFileAction for keystores files from Connectors
 @param resource helping class containing all resources for ServerMigrator
 @param fName name of the keystore file to be copied into AS7
 @return  null if the file is already set for copying or the file cannot be found in the AS5 structure else
          created CopyFileAction
Creates CopyFileAction for keystores files from Connectors @param resource helping class containing all resources for ServerMigrator @param fName name of the keystore file to be copied into AS7 @return null if the file is already set for copying or the file cannot be found in the AS5 structure else created CopyFileAction
// TODO: // TODO: MIGR-54 The paths in AS 5 config relate to some base dir. Find out which and use that, instead of searching. //       Then, create the actions directly in the code creating this "files to copy" collection. //throw new ActionException("Failed copying a security file: " + ex.getMessage(), ex); // Some files referenced in security may not exist. (?)