You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eclipse is able to detect that an xml file is an Apache Ant Build file, regardless of file name. After installing LiClipseText (version 2.1.2) this detection is broken. The file can no longer be run with Ant via context menu unless the file name is build.xml.
Install Eclipse 4.9 "2018-09" for Java EE Developers. E.g., you may download an archive and unpack it.
Start Eclipse. Create a new project.
Menu: File > New > Project..., select General / Project.
Open "Project Explorer" view.
Create a file named build.xml.
(Open context menu on the project root, e.g. with a right click. Select New > File.
Use File name: build.xml)
Use the following text for the file (a sample Apache Ant build file):
Copy the file as build2.xml (using Copy and Paste command from the context menu in "Project Explorer").
Select the file build.xml in "Project Explorer", open context menu on it, The menu has item "Run As" that opens a submenu with commands "Ant Build" and "Ant Build..."
Select the file build2.xml. It has the same "Run As" > "Ant Build" and "Ant Build..." context menu.
This is the expected behaviour. Both files can be run with Ant. Both files are by default edited with "Ant Editor" (not the generic XML Editor).
Install LiClipseText plugin. )E.g. menu Help > Eclipse Marketplace.... Find LiClipseText there. Install. Restart.)
The current version is LiClipseText 2.1.2.
Select the file build2.xml. Open its context menu. Expected behaviour: its "Run As" menu item should have "Ant Build" and "Ant Build..." commands in its submenu. Actual behaviour: its "Run As" menu item does not have "Ant Build" and "Ant Build..." commands.
This is unexpected.
It looks as if the file is no longer detected as an Ant build file.
Select the file build.xml. Its behaviour has not changed. It has "Run As" > "Ant Build" in its menu.
The text was updated successfully, but these errors were encountered:
Eclipse is able to detect that an xml file is an Apache Ant Build file, regardless of file name. After installing LiClipseText (version 2.1.2) this detection is broken. The file can no longer be run with Ant via context menu unless the file name is
build.xml
.I documented this issue as an answer to question 32300174 on stackoverflow. I am providing the steps to reproduce here.
Steps to reproduce:
Menu: File > New > Project..., select General / Project.
Create a file named
build.xml
.(Open context menu on the project root, e.g. with a right click. Select New > File.
Use File name: build.xml)
Use the following text for the file (a sample Apache Ant build file):
build2.xml
(using Copy and Paste command from the context menu in "Project Explorer").build.xml
in "Project Explorer", open context menu on it, The menu has item "Run As" that opens a submenu with commands "Ant Build" and "Ant Build..."Select the file
build2.xml
. It has the same "Run As" > "Ant Build" and "Ant Build..." context menu.This is the expected behaviour. Both files can be run with Ant. Both files are by default edited with "Ant Editor" (not the generic XML Editor).
The current version is LiClipseText 2.1.2.
build2.xml
. Open its context menu.Expected behaviour: its "Run As" menu item should have "Ant Build" and "Ant Build..." commands in its submenu.
Actual behaviour: its "Run As" menu item does not have "Ant Build" and "Ant Build..." commands.
This is unexpected.
It looks as if the file is no longer detected as an Ant build file.
build.xml
. Its behaviour has not changed. It has "Run As" > "Ant Build" in its menu.The text was updated successfully, but these errors were encountered: