Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiClipseText breaks detection of Ant Build files in Eclipse #15

Open
kkolinko opened this issue Nov 2, 2018 · 0 comments
Open

LiClipseText breaks detection of Ant Build files in Eclipse #15

kkolinko opened this issue Nov 2, 2018 · 0 comments

Comments

@kkolinko
Copy link

kkolinko commented Nov 2, 2018

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:

  1. Install Eclipse 4.9 "2018-09" for Java EE Developers. E.g., you may download an archive and unpack it.
  2. Start Eclipse. Create a new project.
    Menu: File > New > Project..., select General / Project.
  3. 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):
<?xml version="1.0" encoding="utf-8"?>
<project default="build">
	<target name="build">
		<basename file="${ant.file}" property="filename" />
		<echo message="Hello from ${filename}" />
	</target>
</project>
  1. Copy the file as build2.xml (using Copy and Paste command from the context menu in "Project Explorer").
  2. 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).
  3. Install LiClipseText plugin. )E.g. menu Help > Eclipse Marketplace.... Find LiClipseText there. Install. Restart.)
    The current version is LiClipseText 2.1.2.
  4. 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.
  5. Select the file build.xml. Its behaviour has not changed. It has "Run As" > "Ant Build" in its menu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant