Package org.apache.tools.ant.types

Examples of org.apache.tools.ant.types.FilterChain


     *        directory
     * @throws IOException If an I/O error occurs
     */
    private void prepare(String theDirName) throws IOException
    {
        FilterChain filterChain = createFilterChain();
       
        if (this.tmpDir == null)
        {
            this.tmpDir = createTempDirectory(theDirName);
        }
View Full Code Here


    /**
     * Adds a FilterChain.
     * @return a filter chain object
     */
    public FilterChain createFilterChain() {
        FilterChain filterChain = new FilterChain();
        filterChains.addElement(filterChain);
        return filterChain;
    }
View Full Code Here

        beginExecution();

        //patch the redirector to save output to a file
        RedirectorElement redirector = getRedirector();
        redirector.setAlwaysLog(true);
        FilterChain outputFilterChain = redirector.createOutputFilterChain();
        outputFilterChain.add(outputCache);

        try {
            Path sources = createUnifiedSourcePath();
            Iterator iter = sources.iterator();
            while (iter.hasNext()) {
View Full Code Here

    /**
     * Add a FilterChain.
     * @return a filter chain object.
     */
    public FilterChain createFilterChain() {
        FilterChain filterChain = new FilterChain();
        filterChains.addElement(filterChain);
        return filterChain;
    }
View Full Code Here

     * @return The default filter chain
     */
    protected final FilterChain createFilterChain()
    {
        ReplaceTokens.Token token = null;
        FilterChain filterChain = new FilterChain();

        // Token for the cactus port
        ReplaceTokens replacePort = new ReplaceTokens();
        token = new ReplaceTokens.Token();
        token.setKey("cactus.port");
        token.setValue(String.valueOf(getPort()));
        replacePort.addConfiguredToken(token);
        filterChain.addReplaceTokens(replacePort);

        // Token for the cactus webapp context
        ReplaceTokens replaceContext = new ReplaceTokens();
        token = new ReplaceTokens.Token();
        token.setKey("cactus.context");
        token.setValue(getDeployableFile().getTestContext());
        replaceContext.addConfiguredToken(token);
        filterChain.addReplaceTokens(replaceContext);

        return filterChain;
    }
View Full Code Here

     * @throws IOException If an I/O error occurs
     */
    private void prepare(String theDirName) throws IOException
    {
        FileUtils fileUtils = FileUtils.newFileUtils();
        FilterChain filterChain = createFilterChain();

        this.tmpDir = prepareTempDirectory(this.tmpDir, theDirName);

        // copy configuration files into the temporary container directory
        if (this.resinConf != null)
View Full Code Here

     */
    protected final void prepare(String theResourcePrefix, String theDirName)
        throws IOException
    {
        FileUtils fileUtils = FileUtils.newFileUtils();
        FilterChain filterChain = createFilterChain();

        this.tmpDir = prepareTempDirectory(this.tmpDir, theDirName);

        // Copy configuration files into the temporary container directory

View Full Code Here

     * @throws IOException If an I/O error occurs
     */
    private void prepare(String theDirName) throws IOException
    {
        FileUtils fileUtils = FileUtils.newFileUtils();
        FilterChain filterChain = createFilterChain();
       
        this.tmpDir = prepareTempDirectory(this.tmpDir, theDirName);

        // copy configuration files into the temporary container directory
        File confDir = createDirectory(tmpDir, "conf");
View Full Code Here

     */
    protected void prepare(String theResourcePrefix, String theDirName)
        throws IOException
    {
        FileUtils fileUtils = FileUtils.newFileUtils();
        FilterChain filterChain = createFilterChain();

        setTmpDir(prepareTempDirectory(getTmpDir(), theDirName));

        File confDir = createDirectory(getTmpDir(), "conf");
       
View Full Code Here

        // Note that we needed to add a last character to the string
        // after the @cactus.context@ token as otherwise the Ant code
        // fails! It looks like an Ant bug to me...      
        String buffer = "@cactus.port@:@cactus.context@:";
                       
        FilterChain chain = this.container.createFilterChain();       

        ChainReaderHelper helper = new ChainReaderHelper();
        Vector chains = new Vector();
        chains.addElement(chain);
        helper.setFilterChains(chains);
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.types.FilterChain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.