简体   繁体   中英

Ant/build.xml functionality ignored since Netbeans 7.1 (for PHP project)

I used to compress all the JavaScript files in my PHP project automated by an ant file (build.xml). This worked very well until the update to Netbeans 7.1.

Now Netbeans does not recognize this file as an Ant file but as a simple XML file ( see screenshot )

The build.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<project name="myWeb" default="_DEPLOY" basedir=".">
    <target name="minimizeWebFiles" >
        <echo message="Minify!" />
        <exec executable="powershell.exe">
            <arg value="MinimizeWebFiles.ps1" />
        </exec>
        <echo message="End!" />
    </target>
        <target name="_DEPLOY" depends="minimizeWebFiles" />
</project>

The same file worked on previous netbeans versions without a problem.

I also know the official manual on netbeans.org , but this does not help. Has anyone an idea, what is wrong here? Thanks a bunch!

Try to go to Tools->Plugins->Installed tab to see whether your JAVA SE is activated. After you active the option restart your Netbean to take effect.

The problem was, that after the netbeans update the "Ant" plugin was not installed!

I don't know why this happened as I had this plugin installed in Netbeans 7.0.

So somehow the update process did not include/installed the Ant plugin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM