Hi,
I am using the Jacobe Code Beautifier which is available from the Jacobe website
I have used it so far from the command-line successfully, but I want to integrate it with TextPad so that when I choose to jacobe a file, it should do that automatically and replace the existing file with the jacobed file. Right now, I have to do the following on the command-line:
1. jacobe file.java
2. delete file.java
3. rename file.java.jacobe file.java
Is there any easy way of doing this in one step from TextPad? I think there must be a way because one of the feedback comments says "just in a few minutes integrated it with Textpad"!
I am new to this, so I will be very grateful if anyone could help me.
Thanks,
RoxyProxy
Integrating Jacobe Beautifier for Java with TextPad
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Could you please tell me what exactly the batch file should contain? What I am confused about is how to put the filename in the batch file.MudGuard wrote:write a batch file doing your 3 steps
Example:
jacobe ?
delete ?
rename ?.java.jacobe ?.java
What do I put in the "?" fields? I can't just put file.java because every file has its own name. Sorry, I am new to this, so any help will be appreciated. I could always replace ? with *.java, but I want to do this for the current file that I want to jacobe.
Thanks,
roxyproxy
I figured something out; here's what I did:
jacobe %1.java
delete %1.java
rename %1.java.jacobe %1.java
This works if I pass $BaseName as a parameter, but I don't want the second and third steps (delete and rename) to occur if the jacobe step is unsuccessful. How do I do this?
Thanks a lot!
roxyproxy
jacobe %1.java
delete %1.java
rename %1.java.jacobe %1.java
This works if I pass $BaseName as a parameter, but I don't want the second and third steps (delete and rename) to occur if the jacobe step is unsuccessful. How do I do this?
Thanks a lot!
roxyproxy