copy( etc, target, true, includes, standard + excludes );
copy( etc, target, true, includes, standard + "," + excludes );
    public void execute()    {        final Project project = getProject();        Resource resource = getResource();        Context context = getContext();        log( "basedir: " + getResource().getBaseDir(), Project.MSG_VERBOSE );                //        // setup the file system        //                String filters = resource.getProperty( SRC_FILTERED_INCLUDES_KEY, SRC_FILTERED_INCLUDES_VALUE );        mkDir( context.getTargetDirectory() );        if( context.getSrcMainDirectory().exists() )        {            log( "preparing 'main' src.", Project.MSG_VERBOSE );            File src = context.getSrcMainDirectory();            File dest = context.getTargetBuildMainDirectory();            mkDir( dest );            copy( src, dest, true, filters, "" );            copy( src, dest, false, "**/*.*", filters );        }        else        {            log( "project does not contain 'main' src.", Project.MSG_VERBOSE );        }        if( context.getSrcDocsDirectory().exists() )        {            log( "preparing 'docs' src.", Project.MSG_VERBOSE );            File src = context.getSrcDocsDirectory();            File dest = context.getTargetBuildDocsDirectory();            mkDir( dest );            copy( src, dest, true, filters, "" );            copy( src, dest, false, "**/*.*", filters );        }        else        {            log( "project does not contain 'doc' src.", Project.MSG_VERBOSE );        }        if( context.getSrcTestDirectory().exists() )        {            log( "preparing 'test' src.", Project.MSG_VERBOSE );            File src = context.getSrcTestDirectory();            File dest = context.getTargetDirectory( "build/test" );            mkDir( dest );            copy( src, dest, true, filters, "" );            copy( src, dest, false, "**/*.*", filters );            File test = context.getTargetDirectory( "test" );            mkDir( test );        }        else        {            log( "project does not contain 'test' src.", Project.MSG_VERBOSE );        }                if( context.getEtcMainDirectory().exists() )        {            final String includes =               resource.getProperty( ETC_FILTERED_INCLUDES_KEY, ETC_FILTERED_INCLUDES_VALUE );            final String excludes =               resource.getProperty( ETC_FILTERED_EXCLUDES_KEY, ETC_FILTERED_EXCLUDES_VALUE );                        //            // copy ${etc}/main content to ${target}/build/main            //                        final File etcMain = context.getEtcMainDirectory();            final File buildMainDir = context.getTargetDirectory( "build/main" );            copy( etcMain, buildMainDir, true, includes, excludes );            copy( etcMain, buildMainDir, false, excludes, "" );        }                if( context.getEtcTestDirectory().exists() )        {            final String includes =               resource.getProperty( ETC_FILTERED_INCLUDES_KEY, ETC_FILTERED_INCLUDES_VALUE );            final String excludes =               resource.getProperty( ETC_FILTERED_EXCLUDES_KEY, ETC_FILTERED_EXCLUDES_VALUE );                        //            // copy ${etc}/test content to ${target}/build/test            //                        final File etcTest = context.getEtcTestDirectory();            final File test = context.getTargetDirectory( "test" );            copy( etcTest, test, true, includes, excludes );            copy( etcTest, test, false, excludes, "" );        }                if( context.getEtcDirectory().exists() )        {            final String includes =               resource.getProperty( ETC_FILTERED_INCLUDES_KEY, ETC_FILTERED_INCLUDES_VALUE );            final String excludes =               resource.getProperty( ETC_FILTERED_EXCLUDES_KEY, ETC_FILTERED_EXCLUDES_VALUE );            final File etc = context.getEtcDirectory();                        //            //  ${etc}/* directories (excluding test, main and deliverables)            // directly to the target directory            //            String main = context.getEtcMainDirectory().toString() + "/**";            String test = context.getEtcTestDirectory().toString() + "/**";            File target = context.getTargetDirectory();            final String standard = main + "," + test;            copy( etc, target, true, includes, standard + excludes );            copy( etc, target, false, excludes, standard );        }    }