public void initialize()

in src/java/org/apache/fulcrum/upload/DefaultUploadService.java [345:363]


    public void initialize() throws Exception
    {
        // test for the existence of the path within the webapp directory.
        // if it does not exist, assume the path was to be used as is.
        String testPath = getRealPath( repositoryPath );
        File testDir = new File( testPath );
        if (testDir.exists())
        {
            repositoryPath = testPath;
        }

        getLogger().debug( "Upload Service: REPOSITORY_KEY => " + repositoryPath );

        itemFactory = 
                DiskFileItemFactory.builder()
                .setPath(Paths.get( repositoryPath ) )
                .setBufferSize( sizeThreshold )
                .get();
    }