Input line too long in a windows system
See original GitHub issueExpected Behavior
DITA-OT outputs.
Actual Behavior
DITA-OT crashes right away with this error message:
C:\workspace\gradle\dita-transform\build\PI\build\ditaotPI>bin\dita.bat --input=C:\workspace\RDDOC_technical_documentation\DITA\E1007_PI_publi.ditamap --format=pi
La ligne entrée est trop longue.
"C:\workspace\gradle\dita-transform\build\PI\build\ditaotPI\bin\..\config\env.bat" était inattendu.
Which translates to
Input line is too long.
"C:\workspace\gradle\dita-transform\build\PI\build\ditaotPI\bin\..\config\env.bat" was unexpected.
Possible Solution
Use the script closer to C: but it sounds like a regression. Remove the need for env.at by adding the file in the classpath using gradle.
Steps to Reproduce
Launch DITA-OT deep into the filesystem of a windows machine.
Copy of the error message, log file or stack trace
Environment
- DITA-OT version: 3.0
- Operating system and version: Windows
- How did you run DITA-OT?
dita
command - Transformation type: PDF
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:18 (16 by maintainers)
Top Results From Across the Web
"Input line is too long" error in BAT File - Stack Overflow
In the updating data bat files there are lot of calls for a command(.cmd file) of my system that is responsible for updating...
Read more >The input line is too long - cmd.exe - Super User
The problem is not about line too long, because your command has only 1673 characters, and the limit is 8191 characters for commands ......
Read more >The input line is too long. The syntax of the command is incorrect
While starting Apache Kafka you may get an error like The input line is too long. The syntax of the command is incorrect...
Read more >The input line is too long - Windows command line error - Digizol
I have set up a variable for classpath which makes my command too lengthy. This message pops up since the command is too...
Read more >Input line too long error when running Windows batch file
I suspect that it is indeed the repeated call that causes this. Typically such batch files as ipsxe-comp-vars.bat prepend or append all ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Using our own class loader in the org.dita.dost.invoker.Main could also be useful if we want to isolate the JAR libraries contributed by a certain transtype. If a certain transtype is invoked, only its jar libraries and the common jar libraries could be loaded + the libraries from extra plugins this particular transtype depends on.
or dita.bat could be replaced by dita.ps1 😄 PowerShell has better features than CMD