Web project Remove JS file Red Fork

Source: Internet
Author: User

jquery was used for the project, but after the jquery was copied in, the JS file had a red fork and looked very uncomfortable. Such as:

Workaround:

1. Locate the. project file under Projects

  

2. Remove JavaScript validation

1 <?XML version= "1.0" encoding= "UTF-8"?>2 <projectdescription>3     <name>Struts2_jquery_json</name>4     <Comment></Comment>5     <Projects>6     </Projects>7     <Buildspec>8         <!--  9 Remove JavaScript validationTen <buildCommand> One <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> A <arguments> - </arguments> - </buildCommand> the          - -         <Buildcommand> -             <name>Org.eclipse.jdt.core.javabuilder</name> -             <arguments> +             </arguments> -         </Buildcommand> +         <Buildcommand> A             <name>Org.eclipse.wst.common.project.facet.core.builder</name> at             <arguments> -             </arguments> -         </Buildcommand> -         <Buildcommand> -             <name>Org.eclipse.wst.validation.validationbuilder</name> -             <arguments> in             </arguments> -         </Buildcommand> to     </Buildspec> +     <Natures> -         <Nature>Org.eclipse.jem.workbench.JavaEMFNature</Nature> the         <Nature>Org.eclipse.wst.common.modulecore.ModuleCoreNature</Nature> *         <Nature>Org.eclipse.wst.common.project.facet.core.nature</Nature> $         <Nature>Org.eclipse.jdt.core.javanature</Nature>Panax Notoginseng         <Nature>Org.eclipse.wst.jsdt.core.jsNature</Nature> -     </Natures> the </projectdescription>

3. After modifying the. project file, you need to re-copy the JS file into the project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.