1

我是 NetBeans 7.4 版的新手,我一直在搜索如何将 CDNJS 库添加到 NetBeans。当我打开项目属性时,在 JavaScript 文件下没有可用的库。任何方向将不胜感激。

谢谢

4

1 回答 1

1

Added the following to the /nbproject/build.xml and it worked

<target name="get-cdnjs-jar">
    <mkdir dir="build/extsrc"/>
    <get src="https://github.com/cdnjs/cdnjs/archive/master.zip" dest="build/cdnjs-temp.zip"/>
    <javac srcdir="extsrc" destdir="build/extsrc"/>
    <java classname="RemoveContent" fork="yes">
        <arg file="build/cdnjs-temp.zip"/>
        <classpath>
            <pathelement location="build/extsrc"/>
        </classpath>
    </java>
    <echo message="File build/cdnjs-temp.zip.empty was generated."/>
    <echo message="Rename it and upload it as external/cdnjs.zip"/>
</target>
于 2013-11-14T17:19:56.477 回答