Package xdoclet

Examples of xdoclet.DocletTask


     */
    public void run()
    {
        _result = null;

        DocletTask task = null;

        try
        {
            task = initTask();
            if (_subTaskName != null)
            {
                task.addSubTask(initSubTask());
            }
        }
        catch (Exception ex)
        {
            cleanFiles();
            throw new RuntimeException(ex);
        }

        try
        {
            task.setVerbose(false);
            task.init();
            task.execute();
        }
        catch (Exception ex)
        {
            // what to do with any exception ? rethrow it ?
            cleanFiles();
View Full Code Here


        _classWriter.removeTmpDir();
    }

    private DocletTask initTask() throws Exception
    {
        DocletTask task  = (DocletTask)this.getContextClassLoader().loadClass(_taskName).newInstance();
        FileSet    files = new FileSet();

        task.setDestDir(_classWriter.getTmpDir());
        files.setDir(_classWriter.getTmpDir());

        StringBuffer includes = new StringBuffer();
       
        for (Iterator it = _srcFiles.iterator() ; it.hasNext();)
        {
            if (includes.length() > 0)
            {
                includes.append(" ");
            }
            includes.append(((File)it.next()).getName());
        }

        task.addFileset(files);
        task.setProject(new Project());

        String name;

        for (Iterator it = _taskProperties.keySet().iterator(); it.hasNext();)
        {
View Full Code Here

     */
    public void run()
    {
        _result = null;

        DocletTask task = null;

        try
        {
            task = initTask();
            if (_subTaskName != null)
            {
                task.addSubTask(initSubTask());
            }
        }
        catch (Exception ex)
        {
            cleanFiles();
            throw new RuntimeException(ex);
        }

        try
        {
            task.setVerbose(false);
            task.init();
            task.execute();
        }
        catch (Exception ex)
        {
            // what to do with any exception ? rethrow it ?
            cleanFiles();
View Full Code Here

        _classWriter.removeTmpDir();
    }

    private DocletTask initTask() throws Exception
    {
        DocletTask task  = (DocletTask)this.getContextClassLoader().loadClass(_taskName).newInstance();
        FileSet    files = new FileSet();

        task.setDestDir(_classWriter.getTmpDir());
        files.setDir(_classWriter.getTmpDir());

        StringBuffer includes = new StringBuffer();
       
        for (Iterator it = _srcFiles.iterator() ; it.hasNext();)
        {
            if (includes.length() > 0)
            {
                includes.append(" ");
            }
            includes.append(((File)it.next()).getName());
        }

        task.addFileset(files);
        task.setProject(new Project());

        String name;

        for (Iterator it = _taskProperties.keySet().iterator(); it.hasNext();)
        {
View Full Code Here

TOP

Related Classes of xdoclet.DocletTask

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.